Starting Python Project

Adil
django_tuts
Published in
1 min readSep 12, 2019

Whenever you start any project in python, it’s a good practice to create an isolated environment for each project, especially during development.

Isolation of environment helps you to develop and test projects with different python and dependencies versions without corrupting the default python and packages on your system.

venv creates an isolated environment with its python binary and packages and it’s an exact copy of the python with which this environment is created.

Creating an Environment

python3 -m venv environment_directory_name

Activating an Environment

source environment_directory_name/bin/activate

Deactivating an Environment

deactivate

--

--