我在 Win7 上安装了两个版本的 python。 (Python 2.5 和 Python 2.7)。
它们分别位于“C:/Python25”和“C:/Python27”。
我正在尝试使用 Python 2.5 运行文件,但默认情况下 Cygwin 选择 2.7。
如何更改 Cygwin 使用的版本?
最佳答案
最快的方法是重新排序您的 $PATH,以便首先选择 2.5。 正确的方法是使用 virtualenv 创建特定于 python 版本的 jail 环境。
关于python - 如何更改 Cygwin 选择的 Python 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9598739/