Fatal Python error when attempting to upgrade pip -


i'm trying upgrade pip version 8.0.2 version 7.1.2, however, when type python -m pip install --upgrade pip, command line, returns:

fatal python error: py_initialize: unable load file system codec importerror: no module named 'encodings'  current thread 0x00007cf8 (most recent call first):   

my pip --version returns:

pip 7.1.2 c:\users\owner\anaconda3\lib\site-packages (python 3.5) 

i'm running windows 10, 64-bit operating system.

edit: additionally, when type python in command line, returns:

c:\users\owner>python fatal python error: py_initialize: unable load file system codec importerror: no module named 'encodings'  current thread 0x00007cf8 (most recent call first): 

and python "stops working."


edit 2: path:

path=c:\program files (x86)\nvidia corporation\physx\common;c:\python27\;c:\python27\scripts;c:\program files (x86)\python332\;c:\programdata\oracle\java\javapath;c:\program files\common files\microsoft shared\windows live;c:\program files (x86)\common files\microsoft shared\windows live;c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:\program files (x86)\windows live\shared;c:\program files (x86)\miktex 2.9\miktex\bin\;c:\python334\tools\scripts;c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:\program files
(x86)\skype\phone\;c:\users\owner\anaconda3;c:\users\owner\anaconda3\scripts;c:\users\owner\anaconda3\library\bin


i have multiple versions of python installed, realize contribute problem, if or it.

try python3 instead.

python3 -m pip install --upgrade pip 

edit:

to temporary fix problem path enter following commands:

c:\>set path=c:\program files\python 3.5;%path% c:\>set pythonpath=%pythonpath%;c:\my_python_lib c:\>python 

you should change c:\my_python_lib similar system.

this temporary , after current session reset. find more this, have here.

from this source upgrade pip windows, following should work:

python -m pip install -u pip 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -