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.
对此做了一些研究,它似乎是某种反复出现的问题。
一个修复建议从环境变量中删除尾部斜杠。
还有其他想法吗?
每次我通过 PIP 安装时都会出现这种情况
我正在运行 python 3.6
最佳答案
如果从环境变量中删除尾部斜杠不起作用,请尝试以下操作。 这对我来说可以。 我正在使用 window 10 和 python3.7.0
Advanced system settings -> Environment Variables -> Path
Select Edit
Select Move Up button for both python and Scripts directory.
最终你的路径将如下所示。
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.
关于python - PIP 10.0.1 - 警告 "Consider adding this directory to PATH or...",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49966547/