On Windows:
Open Command Prompt (CMD), make sure the CMD is set to the folder where your project is, and execute:
py -3 -m venv env
That will create folder named env. To activate the environment execute:
env\Scripts\activate.bat
To use the Python interpreter of your virtual environment execute:
python
On Mac and Linux:
Open Terminal, make sure the terminal is set to the folder where your project is, and execute:
python3. -m venv env
That will create a folder named env. To activate the environment execute:
source env/bin/activate
To use the Python interpreter of your virtual environment execute:
python
On Windows:
On Mac and Linux:
Learn Flask development and learn to build cool apps with our premium Python course on Udemy.