Setting up and activating virtual environments with
venv differs between Unix and Windows operating systems.
Note: In this course, you’re using
.venv as the name of your virtual environment.
Creating and activating a virtual environment on a Unix system:
$ python3 -m venv ./.venv $ source .venv/bin/activate
Creating and activating a virtual environment on a Windows system: :
c:\> c:\Python35\python -m venv c:\path\to\.venv c:\> .venv\Scripts\activate.bat
Here are some resources and additional documentation about setting up virtual environments:
marcinszydlowski1984 on July 6, 2022
Good explanation but it’s worth to mention that it’s not necessary to enter additional “./” during create a virtual environment.
python3 -m venv .venvis enough.