【发布时间】:2013-05-22 01:41:04
【问题描述】:
所以我在 Windows 7 64 位上安装了 python 2.7.3,我想增量升级到 2.7.5 版本。我已经安装了 pip 并且工作正常;我刚刚使用它安装了 Django。
我遇到了这个命令: pip install --upgrade 'python>=2.7,
现在它强制 pip 下载我想要的不是 Python 3 的最新版本。 2.7.5开始下载,出现如下错误:
Downloading/unpacking python>=2.7,<2.7.99
Downloading Python-2.7.5.tar.bz2 (12.1MB): 12.1MB downloaded
Running setup.py egg_info for package python
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "c:\users\name\appdata\local\temp\pip-build-name\python\setup.py", line 33, in <module>
COMPILED_WITH_PYDEBUG = ('--with-pydebug' in sysconfig.get_config_var("CONFIG_ARGS"))
TypeError: argument of type 'NoneType' is not iterable
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "c:\users\name\appdata\local\temp\pip-build-name\python\setup.py", line 33, in <module>
COMPILED_WITH_PYDEBUG = ('--with-pydebug' in sysconfig.get_config_var("CONFIG_ARGS"))
TypeError: argument of type 'NoneType' is not iterable
----------------------------------------
Command python setup.py egg_info failed with error code 1 in c:\users\name\appdata\local\temp\pip-build-name\python
我也是 pip 的新手。当我取消下载时是否安全?我输入了 install“pip install python”,它开始下载 python 版本 3。所以我取消了。这不会覆盖我的主要 python 2.7.3 安装?
好奇。
【问题讨论】:
-
对您不使用 python.org 的 2.7.5 windows 安装程序有任何限制吗?
-
好点。不过,我有点想最大化点子的使用率。
-
在我已经安装了 2.7.3 的情况下运行“pip install python”是否破坏了任何东西?