Activating a Virtual Environment in Python
After creating the virtual environment, you still need to activate it using the command:
..\Scripts\activate # for Windows
source ../bin/activate # for Linux
This command runs the file activate
, which is located in the Scripts
folder on Windows and bin
on Linux. Now the name of the activated virtual environment will be displayed in parentheses on the left side of the terminal:
(project_venv)
Activate the virtual environment you created.