pip is not recognized as an internal or external command
Change installation path of Python from default location,
C:\User\username\AppData\Local\Programs\Python\Python36
to
C:\Python36
using Custom installation of Python.
Post that make sure Adding Python and PythonPath to the Windows environment:
- Open Explorer.
- Right-click 'Computer' in the Navigation Tree Panel on the left.
- Select 'Properties' at the bottom of the Context Menu.
- Select 'Advanced system settings'
- Click 'Environment Variables...' in the Advanced Tab
Under 'System Variables':
Add
PY_HOME
"C:\Python3.6\"
PYTHONPATH
%PY_HOME%\Lib;%PY_HOME%\DLLs;%PY_HOME%\Lib\lib-tk;C:\another-library
Append
PATH %PY_HOME%;%PY_HOME%\Scripts
In case if it still doesn't work then you can prefix 'pip' with following commands:
py -m pip install
No comments:
Post a Comment