跑步时pip3.8
我的终端中出现以下警告
WARNING: The script pip3.8 is installed in '/usr/local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-21.1.1 setuptools-56.0.0
WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv
在centos 7上如何解决这个问题?
这个问题已经在 serverfaults 论坛上得到了回答:Here is a链接到问题 https://serverfault.com/questions/102932/adding-a-directory-to-path-in-centos.
您需要将以下行添加到您的~/.bash_profile
or ~/.bashrc
file.
export PATH="/usr/local/bin:$PATH"
然后,您需要进行分析,通过运行以下命令来执行此操作:
source ~/.bash_profile
或者只需关闭终端并打开一个新会话即可。您应该继续检查您的PATH
以确保它包含路径。
echo $PATH
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)