我在Windows 7 64位系统上安装了Python 2.7.3,并希望升级到2.7.5版本,我已经安装了pip并成功使用它来安装Django。
我尝试运行以下命令:
pip install --upgrade 'python>=2.7,<2.7.99'
该命令强制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。如果我取消一个下载,会安全吗?我输入了"pip install python"并开始下载Python 3版本。所以我取消了。这不会覆盖我的主要Python 2.7.3安装程序,对吧?
好奇。