🪴 Nishanth Gobi

Search

SearchSearch
Home

>

Zettelkasten

>

Literature Notes

>

Setup Python virtual environment with Virtual Env

Setup Python virtual environment with Virtual Env

May 15, 2024, 1 min read

  • #zettel
  • #lit
  • #python

Installation,

pip install virtualenv

Create a virtual environment,

python<version> -m venv <virtual-environment-name>

Activate an environment,

# Mac
source env/bin/activate
 
# Windows
env/Scripts/activate.bat # In CMD
env/Scripts/Activate.ps1 # In Powershell

Deactivate,

# Mac
deactivate

Related §

  • Setup Python virtual environment

Refs §

  1. https://www.freecodecamp.org/news/how-to-setup-virtual-environments-in-python/

Graph View

  • Related
  • Refs

Created with Quartz v4.1.0, © 2024

  • GitHub
  • LinkedIn