python - PIP 10.0.1 - 警告 "Consider adding this directory to PATH or..."

标签 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.

对此做了一些研究,它似乎是某种反复出现的问题。

一个修复建议从环境变量中删除尾部斜杠。

还有其他想法吗?

每次我通过 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.

enter image description here

最终你的路径将如下所示。

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.

关于python - PIP 10.0.1 - 警告 "Consider adding this directory to PATH or...",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49966547/

相关文章:

python - 涉及两个列表的 Python 单元测试

python - 远程访问django模型

python - Python 中函数的别名

python - 如何在 mac osx 上安装 python 的 pip 包?

python - 在 Windows 上使用 Pip 在全局环境而不是 virtualenv 中安装包

python - 使用python查找文件名

python - pickle 一个包含 __cinit__ : __setstate__ vs __reduce__? 的 cython 类

python - 使用 'PIP' 更新 Python

python - 与 distutils/pip 一起安装 Bash completion

ubuntu - python3.5 的 pip 破坏了 Ubuntu 16.10