解决pip3 install waring ‘The script xxx is installed in ‘/home/xxx/bin‘ which is not on PATH‘

前提:执行pip3 install virtualenv
出现WARNING错误,如下:

WARNING: The script virtualenv is installed in ‘/home/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.

解决办法:

echo 'export PATH=/home/xxx/bin:$PATH' >>~/.bashrc
source ~/.bashrc

其中“/home/xxx/bin”为WARNING提示的PATH
然后卸载掉刚才安装的包,并重新安装:

pip3 uninstall virtualenv
pip3 install virtualenv
相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页