creating virtual environment python
python3 -m venv tutorial-env
#name : tutorial-env
tutorial-envScriptsactivate #activate env
deactivate #deactivate env
creating virtual environment python
python3 -m venv tutorial-env
#name : tutorial-env
tutorial-envScriptsactivate #activate env
deactivate #deactivate env
how to create a virtual environment for python project
Create Virtual Environment
1. Install "vitrualenv" packages globally
python3 -m pip install virtualenv
Check installed version : virtualenv -V
2. Create a directory for your Virtual Environments
Mkdir VirtialEnv
3. Move to this direcory
Cd VirtialEnv
4. Create your python virtual environment
virtualenv {name of your venv}
virtualenv myvenv
virtualenv myvenv -p python3
5. Activate virtual env
. Myvenv/bin/activate
/myvenv/bin/activate.bat (Windows)
6. Now your terminal is using this Virtual environment for your python project
Check python version
pythoon -V
7. After done your work you need to deactivate you Virtual env
deactivate
create virtual environment python
sudo pip3 install virtualenv
virtualenv venv
make virtual environment python
#To create a virtual envoirnment in user/.env
mkvirtualenv env
# and to activate
# it can activate from being in any directory
workon env
how to create virtual environment in python
#installing venv
py -m pip install --user virtualenv
#creating virtual env
py -m venv env
#activating virtual env
.envScriptsactivate
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us