Skip to content

Python Virtual Environment

Video 4

Create a Directory For Tkinter Projects

/home/terry/Sync/codemy.com/tkinter

Create a Virtual Environment

A virtual environment is like a walled garden. Stuff that gets installed here doesn't affect the rest of the computer. He always creates a virtual environment.

Initialize it

python -m venv name_of_virtual_environment`

# Activate it:

source name_of_virtual_environment/bin/activate

# Should then show the name of the virtual environment inside parentheses above the command prompt. 

# Deactivate it:

deactivate

python

venv

codemy