Python Snippet: Create Virtual Environment

From Coder Merlin
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder


# Create a new environment
python3 -m venv <directory-name>

# Activate the environment
cd <directory-name>
source bin/activate

# Deactivate the environment
deactivate

# Install Flask
pip install Flask

# Install waitress
pip install waitress

# Install Tensor Flow
# BE PATIENT! This will take some time.
pip install matplotlib
pip install tensorflow