因此,我在Windows 7 64位上安装了python 2.7.3,我想将其增量升级到2.7.5版。我已经安装了点子,并且工作正常;我刚刚使用它安装了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我也是新手。当我取消下载时,这样安全吗?我输入install“ pip install python”,它开始下载版本python版本3。因此我取消了。那不会覆盖我的主要python 2.7.3安装吗?
2 回答

拉莫斯之舞
TA贡献1820条经验 获得超10个赞
pip
设计用于升级python软件包,而不是升级python本身。pip
要求升级时,请勿尝试升级python。
不要键入,pip install python
而是使用安装程序。
添加回答
举报
0/150
提交
取消