前提:执行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