Update python version with pip

So, I have python 2.7.3 installed on Windows 7 64 bit and I want to do an incremental upgrade to version 2.7.5. I have a protocol installed and it works fine; I just installed Django using it.

I came across this command: pip install --upgrade 'python> = 2.7, <2.7.99'

Now it forces pip to download the latest version, which is not Python 3, and this is what I want. 2.7.5 starts the download, and I get the following error:

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 

I am also new to pip. When I cancel the download, is it safe? I typed install "pip install python" and started downloading the version of python version 3. Therefore, I canceled. This will not undo my main python 2.7.3 install?

Curious.

+6
source share
1 answer

pip is for updating python packages, not for updating python itself. pip should not try to upgrade python when you ask it to do this.

Do not type pip install python , but use the installer instead.

+8
source

Source: https://habr.com/ru/post/945917/


All Articles