all AI news
Creating a virtual environment in Python
DEV Community dev.to
Quick version
This tutorial focuses on creating a virtual environment or venv for use with Python. I only intend to provide a brief introduction to venv, mostly providing the code necessary.
To install the venv software enter the following:
pip install virtualenv
Now you can create a venv on your system. To initiate venv within any directory type the following:
python<version> -m venv <virtual-environment-name>
Like so:
python3 -m venv myVenv
To activate the venv enter the following command:
source myVenv/bin/activate …
code environment install introduction pip python software softwaredevelopment softwareengineering tutorial venv virtual