Published Jan 09 2021
Psssst! The 2023 WEB DEVELOPMENT BOOTCAMP is starting on FEBRUARY 01, 2023! SIGNUPS ARE NOW OPEN to this 10-weeks cohort course. Learn the fundamentals, HTML, CSS, JS, Tailwind, React, Next.js and much more! ✨
It’s common to have multiple Python applications running on your system.
When applications require the same module, at some point you will reach a tricky situation where an app needs a version of a module, and another app a different version of that same module.
To solve this, you use virtual environments.
venv. Other tools work similarly, like
Create a virtual environment using
python -m venv .venv
in the folder where you want to start the project, or where you already have an existing project.
source .venv/bin/activate.fishon the Fish shell
Executing the program will activate the Python virtual environment. Depending on your configuration you might also see your terminal prompt change.
Mine changed from
(.venv) ➜ folder
pip will use this virtual environment instead of the global environment.