'Setting up and activating virtual environment

So, I've been trying to activate my virtual environment in VScode so I could open my Django manage.py and run the server, but for some reason it doesn't seem to activate in my bash terminal. And after running it, I get a "did you forget to activate your virtual environment?". What am I missing here?



Solution 1:[1]

In the env folder, there should be an "activate.bat" script, that you can execute to activate your venv.

Solution 2:[2]

I think you should open bash in the existing directory and run Scripts\activate

I'd also like to confirm which of the virtual environment you are making use of.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Exaryss
Solution 2 Chidee Ohiri