Python Snippet: Create Virtual Environment

From Coder Merlin
Revision as of 15:25, 17 April 2022 by Chukwuemeka-tinashe (talk | contribs) (Created page with "<syntaxhighlight lang='bash'> # 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 tensorflow </syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 tensorflow