Why pip doesn't want to upgrade?

Was Python 2.7, I downloaded 3.6, added along the way, decided to download Django wrote, you need to upgrade PIP upgrade PIP, and it throws an error.
With Python 2.7 there were no problems.
Traceback (most recent call last):
File "C:\Python36\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "C:\Python36\lib\site-packages\pip\commands\install.py", line 317, in run
File "C:\Python36\lib\site-packages\pip\req\req_set.py", line 742, in install
File "C:\Python36\lib\site-packages\pip\req\req_install.py", line 831, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "C:\Python36\lib\site-packages\pip\req\req_install.py", line 1032, in move_wheel_files
File "C:\Python36\lib\site-packages\pip\wheel.py", line 463, in move_wheel_files
File "C:\Python36\lib\site-packages\pip\_vendor\distlib\scripts.py", line 372, in make
self._make_script(entry, filenames, options=options)
File "C:\Python36\lib\site-packages\pip\_vendor\distlib\scripts.py", line 276, in _make_script
self._write_script(scriptnames, shebang, script, filenames, ext)
File "C:\Python36\lib\site-packages\pip\_vendor\distlib\scripts.py", line 212, in _write_script
launcher = self._get_launcher('t')
File "C:\Python36\lib\site-packages\pip\_vendor\distlib\scripts.py", line 351, in _get_launcher
result = finder(distlib_package).find(name).bytes
File "C:\Python36\lib\site-packages\pip\_vendor\distlib\resources.py", line 324, in finder
raise DistlibException('Unable to locate finder for %r' % package)
pip._vendor.distlib.DistlibException: Unable to locate finder for 'pip._vendor.distlib'
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'python-m pip install --upgrade pip' command.
July 2nd 19 at 17:59
1 answer
July 2nd 19 at 18:01
The last line tells you what to do better.
python-m pip install --upgrade pip

Since you're using two versions of Python on the machine under Windows, we recommend to upgrade pip differently.
py -3-m pip install --upgrade pip

The command "py" is installed in the system directory of the OS and application is a Python version checker.
Thanks to it you can run the desired Python version (py -2 or py -3).

Similarly, the command "py", the command "pip" can also be run strictly for the correct version of Python. The default name of the pip only applies to Python version 2. If you need to use pip 3rd version of Python, you need to call it using "pip3".

It is possible here so:
pip3 install Django==1.10.3

And it is possible and so:
py -3-m pip install Django==1.10.3
Successfully installed pip-9.0.1

C:\Python35>pip install Django==1.10.3
Collecting Django==1.10.3
Traceback (most recent call last):
File "c:\python27\lib\site-packages\pip\basecommand.py", line 211, in main
status = self.run(options, args)
File "c:\python27\lib\site-packages\pip\commands\install.py", line 294, in run
File "c:\python27\lib\site-packages\pip\req\req_set.py", line 334, in prepare_files
functools.partial(self._prepare_file, finder))
File "c:\python27\lib\site-packages\pip\req\req_set.py", line 321, in _walk_req_to_install
more_reqs = handler(req_to_install)
File "c:\python27\lib\site-packages\pip\req\req_set.py", line 461, in _prepare_file
req_to_install.populate_link(finder, self.upgrade)
File "c:\python27\lib\site-packages\pip\req\req_install.py", line 250, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "c:\python27\lib\site-packages\pip\index.py", line 486, in find_requirement
all_versions = self._find_all_versions(req.name)
File "c:\python27\lib\site-packages\pip\index.py", line 404, in _find_all_versions
index_locations = self._get_index_urls_locations(project_name)
File "c:\python27\lib\site-packages\pip\index.py", line 378, in _get_index_urls_locations
page = self._get_page(main_index_url)
File "c:\python27\lib\site-packages\pip\index.py", line 818, in _get_page
return HTMLPage.get_page(link, session=self.session)
File "c:\python27\lib\site-packages\pip\index.py", line 928, in get_page
"Cache-Control": "max-age=600",
File "c:\python27\lib\site-packages\pip\_vendor\requests\sessions.py", line 477, in get
return self.request('GET', url, **kwargs)
File "c:\python27\lib\site-packages\pip\download.py", line 373, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File "c:\python27\lib\site-packages\pip\_vendor\requests\sessions.py", line 465, in request
resp = self.send(prep, **send_kwargs)
File "c:\python27\lib\site-packages\pip\_vendor\requests\sessions.py", line 605, in send
File "c:\python27\lib\site-packages\pip\_vendor\requests\models.py", line 750, in content
self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
File "c:\python27\lib\site-packages\pip\_vendor\requests\models.py", line 673, in generate
for chunk in self.raw.stream(chunk_size, decode_content=True):
File "c:\python27\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py", line 307, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "c:\python27\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py", line 243, in read
data = self._fp.read(amt)
File "c:\python27\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 54, in read
File "c:\python27\lib\site-packages\pip\_vendor\cachecontrol\controller.py", line 244, in cache_response
self.serializer.dumps(request, response, body=body)
File "c:\python27\lib\site-packages\pip\download.py", line 276, in set
return super(SafeFileCache, self).set(*args, **kwargs)
File "c:\python27\lib\site-packages\pip\_vendor\cachecontrol\caches\file_cache.py", line 99, in set
with self.lock_class(name) as lock:
File "c:\python27\lib\site-packages\pip\_vendor\lockfile\mkdirlockfile.py", line 18, in __init__
LockBase.__init__(self, path, threaded, timeout)
File "c:\python27\lib\site-packages\pip\_vendor\lockfile\__init__.py", line 189, in __init__
File "c:\python27\lib\ntpath.py", line 85, in join
result_path = result_path + p_path
UnicodeDecodeError: 'ascii' codec can't decode byte 0xec in position 0: ordinal not in range(128)

C:\Python35>pip has been updated, but django doesn't want to swing for the 3.5 version, why choose the path of Python 2.7, if I'm out of Python 3.5 trigger it? - Ewell commented on July 2nd 19 at 18:04
UnicodeDecodeError: 'ascii' codec can't decode byte 0xec in position 0: ordinal not in range(128)

Again, the last line... you Have in the console encoding is weird. chcp will give the necessary information and functionality.
As part of the launch of pip you're also doing it wrong. If you need pip 3rd Python, the command needs to be pip3. - Benjamin_McClure commented on July 2nd 19 at 18:07

Features: pip, pip3.X and pip3 are in the Scripts folder of the 3rd Python, which when installed is stored in the PATH variable. :) - Benjamin_McClure commented on July 2nd 19 at 18:10
: Is a directory C:\Python35 a pip? From called to 2.7 then that is in one of the paths specified in the PATH environment variable. Or look in that direction, or call pip as you already above advised:
py -3-m pip install django - alvina_Miller commented on July 2nd 19 at 18:13
: And in your PATH they certainly were inscribed later than the pip from 2.7 (Which one is called and why we already know.

I myself have not build up the zoo of versions, and under Windows is not working but I remember different kind of history with similar problems in people, even when the "py" has not appeared. - alvina_Miller commented on July 2nd 19 at 18:16
about the zoo though, especially with Python is such barrachina. :)
And about the use of pip and pip3, I already wrote in response.

And Yes, that was definitely working. With permission, I write in response. So to speak, so that future generations know. )) - Benjamin_McClure commented on July 2nd 19 at 18:19

Find more questions by tags Python