M HYPE SPLASH
// updates

How to activate a virtual environment in Ubuntu?

By Emma Terry

I installed virtualenv and I created a virtual environment inside my directory. Everything is OK, but I can't activate it. When I run:

source /bin/activate

it says:

already: command not found

Screenshot:

img_virtualenv

3

1 Answer

You need to install python3-venv:

sudo apt install python3-venv

Then:

python3 -m venv vvv
source vvv/bin/activate

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy