Mac - Python starting a venv

Go to the root of the project file in terminal

python3 -m venv .

Since i am in the root folder i just call it by using the ' . '

The files and folders it should make is

  • lib

  • include

  • bin

  • pyvenv.cfg

To start the venv, stay in the root directory

source bin/activate 

If it returns nothing it has started and you can start installing libs

pip3 install requests

Last updated