当前位置: 首页 > 工具软件 > Scriptis > 使用案例 >

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

缑泓
2023-12-01

前提:执行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
 类似资料: