Difference between revisions of "Python Snippet: Create Virtual Environment"

From Coder Merlin
(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>")
 
 
Line 18: Line 18:
# Install Tensor Flow
# Install Tensor Flow
# BE PATIENT! This will take some time.
# BE PATIENT! This will take some time.
pip install matplotlib
pip install tensorflow
pip install tensorflow
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 15:48, 17 April 2022

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