If you using python version manager with asdf-vm/asdf, and you want to use virtualenv and virtualenvwrapper to be your virtual environment, you can install by following.
Install python with asdf-python
-
Install system dependencies
-
install python with asdf
asdf plugin-add python asdf install python latest
- After install asdf-python, Install
virtualenvwrapperwith:pip install --user virtualenvwrapper
- add following to your
.bashrc,.zshrc,.profileor.zprofileexport PATH="$HOME/.local/bin:$PATH" # python virtualenv export WORKON_HOME=$HOME/.virtualenvs source $HOME/.local/bin/virtualenvwrapper_lazy.sh
- restart your terminal, you can use command from virtualenvwrapper, like:
mkvirtualenv,lsvirtualenv,showvirtualenv,rmvirtualenv,cpvirtualenv,allvirtualenv,workon,deactivate, etc.
Command Reference — virtualenvwrapper