Skip to content

Instantly share code, notes, and snippets.

@dev-sareno
Last active August 15, 2020 08:07
Show Gist options
  • Save dev-sareno/0e8ccfc0c699a23a69f84f43c2566c60 to your computer and use it in GitHub Desktop.
Save dev-sareno/0e8ccfc0c699a23a69f84f43c2566c60 to your computer and use it in GitHub Desktop.

Python Environment using venv

Install Python3.8 Locally

Noted: Local installation of Python is recommended to avoid conflicting the system-wide Python version.

Install venv

$ apt-get install python3-venv

Create Virtual Environment

Command: python3.8 -m venv <virtual-environment-name>

$ python3.8 -m venv my-venv

Activate Virtual Environment

$ source my-env/bin/activate
(my-env) $ python -V
Python 3.8.3
(my-env) $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment