How to open virtual environment in Ubuntu called ezra-env
If it’s a Python virtual environment created with venv or virtualenv, you open (activate) it with a single command—just make sure you’re in the directory that contains it.
1. Navigate to the folder that contains the environment
cd /path/to/your/project
You should see a directory named ezra-env inside that project folder.
2. Activate the virtual environment
source ezra-env/bin/activate
After this, your shell prompt will usually show something like:
(ezra-env) andrew@ubuntu:~$
3. To deactivate it
deactivate
If the environment lives somewhere else
Just give the full path:
source /full/path/to/ezra-env/bin/activate
If you’re not sure where it is, you can locate it:
find ~ -type d -name "ezra-env" 2>/dev/null