PIP 10.0.1 - Warning “Consider adding this directory to PATH or…”

前端 未结 4 1271
南旧
南旧 2021-01-01 14:52
The script flake8.exe is installed in \'c:\\users\\me\\appdata\\local\\programs\\python\\python36-32\\Scripts\' which is not on PATH.
Consider adding this directory          


        
相关标签:
4条回答
  • 2021-01-01 15:25

    If removing trailing slashes from the environment variables don't work, please try the following. It works fine for me. I am using window 10 and python3.7.0

    Advanced system settings -> Environment Variables -> Path

    Select Edit

    Select Move Up button for both python and Scripts directory.

    Finally your path will be as the following.

    If you are using other windows(In the case of not having move up button), put your python and Scripts directory at the beginning of the path.

    0 讨论(0)
  • 2021-01-01 15:28

    Adding a new path solved my problem with this error:

    'psycho_django' is not recognized as an internal or external command, operable program or batch file. 
    
    0 讨论(0)
  • 2021-01-01 15:32

    Removing trailing back slashes from those path elements is a good idea.

    There may also be a problem that pip is written in python which uses case sensitive compares by default, (as is the default on every commonly used platform that I am aware of other than windows). You should also make sure that your path variable matches the case expected by pip, (the actual case of the path elements on windows does not have to match).

    To do this go into the control panel, system settings, advanced poperties, advanced, Environmental Variables and edit the path elements that are giving the problem. (Windows has a nasty habit of capitalizing things even when you don't).

    0 讨论(0)
  • 2021-01-01 15:40

    I fixed this (on windows) by adding full control permission to the folder where i installed python. i installed it in "C:\Program Files\Python38-32"

    0 讨论(0)
提交回复
热议问题