VU
Cheat Sheet – Virtual Environment Manager
Create and Manage Environments
Command |
Description |
vu new <envname> |
Create a new virtual environment |
vu rm <envname> |
Delete (remove) an environment |
vu ls |
List all virtual environments |
vu cd <envname> |
Print path to the environment |
Interactive Environment
Command |
Description |
vu activate <envname> |
Start a new shell with the environment active |
exit |
Exit the activated shell |
Other Helpful Commands
Command |
Description |
vu which <envname> |
Show path to Python binary in the env |
vu home |
Show the root directory where vu stores envs |
Typical Workflow
vu new myproject
vu run myproject pip install flask
vu run myproject python app.py
Or interactively:
vu activate myproject
# now you're inside the virtualenv
python
exit