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:
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:
You need to install python3-venv
:
sudo apt install python3-venv
Then:
python3 -m venv vvv
source vvv/bin/activate
if your virtual environment name is "venv", you can use below command to switch there:
source venv/bin/activate
referance : https://www.youtube.com/watch?v=2W_YE0fZs88