PATH=$PATH:~/.local/bin
source /home/tao/.local/bin/virtualenvwrapper.sh
pip install virtualenvwrapper --user #make everything locally!!
vim, zsh is very hard to install locally without sudo permission.
zsh修改:
export PATH="/home/hut/miniconda3/bin:$PATH"
export VIRTUALENVWRAPPER_PYTHON="/usr/bin/python2"
source "/usr/local/bin/virtualenvwrapper.sh"
maybe /usr/share/virtualenvwrapper/virtualenvwrapper.sh
(找不到此文件则用 find / -name virtualenvwrapper.sh 来搜索)
mkvirtualenv --python=`which python3` <vir_env_name>
lsvirtualenv -b
workon <vir_env_name>
lssitepackages
deactivate
rmvirtualenv <vir_env_name>