In video number 23 of the Coding in Python series, you’ll be introduced to the concept of Virtual Environments.
Commands Used in this Video
Install the required packages
sudo apt install python3-virtualenvCreate a virtual environment
virtualenv -p /usr/bin/python3 my-projectActivate the virtual environment
Change directory into the folder:
cd my-project
source bin/activateNotice that your Python binary has changed
which python
which python3Check Python version, to ensure using Python 3
python --versionDeactivate a virtual environment
deactivateUsing pip to install a package
pip install FlaskListing packages installed via pip
pip listUninstalling a pip package
pip uninstall Flask

