Beginners guide to Linux for radio astronomers: How to open virtual environment in Ubuntu called ezra-env

16 views
Skip to first unread message

Andrew Thornett

unread,
Dec 12, 2025, 6:58:36 PM (2 days ago) Dec 12
to SARA Google Group - Email For Posting Messages to Group
Perhaps some of you are at that stage in your radio astronomy journey where you are trying to get your head around how to use Linux. This is also where I am. So, I thought it might be useful to post occasional posts under the title "Beginners guide to Linux for radio astronomers" with things I have learnt and which you might find helpful - feel free to comment on them or add your own!

Andy

Today is about......

How to open virtual environment in Ubuntu called ezra-env (replace ezra-env with the name of your favourite virtual environment)......

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. The virtual environment appears as sub-directory within that directory. 

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



Reply all
Reply to author
Forward
0 new messages