So verwenden Sie virtuelle Umgebung Python
python3 -m pip install --user virtualenv
Yawning Yacare
python3 -m pip install --user virtualenv
# First install virtualenv
!pip3 install virtualenv
# Go to the desired directory which you wish you run your virtual environment.
cd project_directory
# create a virtual environment called my_virtualenv
virtualenv my_virtualenv
### to run the virtual environemt run "activate" as in the following command
.\my_virtualenv\Scripts\activate
#for linux
#install venv capabilities
sudo apt-get install python3-venv
#create the virtual environment
python3 -m venv environment_name_here
#activate virtual environment
source environment_name_here/bin/activate
$ python3 -m venv ~/.virtualenvs/djangodev
$ source ~/.virtualenvs/djangodev/bin/activate