👀 Manage Python virtual environments
pipx install venvmgrFor autocompletion, excecute this or add it to your .bashrc
eval "$(_VM_COMPLETE=bash_source vm)"Create a venv named example using venvmgr
$ vm create exampleUse it using venvmgr
$ vm python --venv example code.pyThe associations between files and venvs are recorded so that
$ vm python code.pynow uses the example venv. We might want to install packages in this venv, e.g.,
$ vm pip --venv example scipyWe now might want to check the venvs:
$ vm ls
example
created at 2023-07-03 12:07:48.872147
activate: source /home/user/.venvmgr/example/bin/activate
used by: /home/user/code.pyFor more information, try vm ls -l.
Lastly, we might want to activate this venv
$ vm activate example