Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PIP 10.0.1 - Warning "Consider adding this directory to PATH or..."

Tags:

python

pip

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 to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. 

Did some research on this and it seems like some sort of recurring issue.

One fix recommends removing trailing slashes from the environment variable.

Any other ideas?

This occurs every time I install via PIP

I am running python 3.6

like image 556
T D Avatar asked Apr 22 '18 13:04

T D


People also ask

How do I add a directory to a path in Python?

Clicking on the Environment Variables button o​n the bottom right. In the System variables section, selecting the Path variable and clicking on Edit. The next screen will show all the directories that are currently a part of the PATH variable. Clicking on New and entering Python's install directory.


1 Answers

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.

enter image description here

Finally your path will be as the following.

enter image description here

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

like image 54
Necromancer Avatar answered Sep 21 '22 11:09

Necromancer