PIP 10.0.1-警告“考虑将该目录添加到PATH或..." [英] PIP 10.0.1 - Warning "Consider adding this directory to PATH or..."

查看:3268
本文介绍了PIP 10.0.1-警告“考虑将该目录添加到PATH或..."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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.

还有其他想法吗?

每次我通过PIP安装时都会发生

This occurs every time I install via PIP

我正在运行python 3.6

I am running python 3.6

推荐答案

如果从环境变量中删除尾部斜杠不起作用,请尝试以下操作. 这对我来说可以. 我正在使用窗口10和python3.7.0

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

选择编辑"

python Scripts 目录选择上移"按钮.

Select Move Up button for both python and Scripts directory.

最后,您的路径将如下所示.

Finally your path will be as the following.

如果您正在使用其他窗口(在没有向上移动的情况下 按钮),将python和Scripts目录放在 路径.

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.

这篇关于PIP 10.0.1-警告“考虑将该目录添加到PATH或..."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆