python - 'pip' is not recognized as an internal or external command -
i'm running weird error trying install django on computer.
this sequence i've typed command line:
c:\python34>python get-pip.py requirement up-to-date: pip in c:\python34\lib\site-packages cleaning up... c:\python34>pip install django 'pip' not recognized internal or external command, operable program or batch file. c:\python34>lib\site-packages\pip install django 'lib\site-packages\pip' not recognized internal or external command, operable program or batch file.
what causing this?
edit ___________________
as requested when type in echo %path%
c:\python34>echo %path% c:\program files\imagemagick-6.8.8-q16;c:\program files (x86)\intel\icls client\ ;c:\program files\intel\icls client\;c:\windows\system32;c:\windows;c:\windows\s ystem32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:\program files (x86)\ windows live\shared;c:\program files (x86)\intel\opencl sdk\2.0\bin\x86;c:\progr files (x86)\intel\opencl sdk\2.0\bin\x64;c:\program files\intel\intel(r) mana gement engine components\dal;c:\program files\intel\intel(r) management engine c omponents\ipt;c:\program files (x86)\intel\intel(r) management engine components \dal;c:\program files (x86)\intel\intel(r) management engine components\ipt;c:\p rogram files (x86)\nodejs\;c:\program files (x86)\heroku\bin;c:\program files (x 86)\git\cmd;c:\railsinstaller\ruby2.0.0\bin;c:\railsinstaller\git\cmd;c:\railsin staller\ruby1.9.3\bin;c:\users\javi\appdata\roaming\npm
you need add path of pip installation path system variable. default, pip installed c:\python34\scripts\pip
(pip comes bundled new versions of python), path "c:\python34\scripts" needs added path variable.
to check if in path variable, type echo %path%
@ cmd prompt
to add path of pip installation path variable, can use control panel or setx
command. example:
setx path "%path%;c:\python34\scripts"
note: according official documentation, "[v]ariables set setx variables available in future command windows only, not in current command window". in particular, you need start new cmd.exe instance after entering above command in order utilize new environment variable.
thanks scott bartell pointing out.
Comments
Post a Comment