前提:执行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
1
source ~/.bashrc
1
其中“/home/xxx/bin”为WARNING提示的PATH
然后卸载掉刚才安装的包,并重新安装:
pip3 uninstall virtualenv
1
pip3 install virtualenv
————————————————
版权声明:本文为CSDN博主「可爱的煤气罐」的原创文章。
原文链接:https://blog.csdn.net/qq_33659001/article/details/109438291