12

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

1 Answers1

21

You need to first install python3-venv:

sudo apt install python3-venv

Then create a virtual environment (here named vvv, but you can use a name of your liking):

python3 -m venv vvv

Then activate the environment using:

source vvv/bin/activate
GAD3R
  • 3,748