Wirtualne środowisko Pythona
python3 -m venv env
python -m virtualenv env #py2
source env/bin/activate
#all this is on same directory
Modern Mosquito
python3 -m venv env
python -m virtualenv env #py2
source env/bin/activate
#all this is on same directory
# for windows 10
py -m venv myvirtualenv
myvirtualenv\Scripts\activate #!!!! use "\" not "/" !!!!!
python3 -m venv tutorial-env
#name : tutorial-env
tutorial-env\Scripts\activate #activate env
deactivate #deactivate env
python3 -m venv env
python3 -m pip install --user virtualenv
# to activate the virtual environment, type:
.\venv\Scripts\activate
# into the terminal.
# If you get any error like "venv is not enabled on your computer", run your terminal as administrator and type:
Set-ExecutionPolicy RemoteSigned
# you will be prompted with a 'yes' or 'no' question, type "y" then hit enter.
# then try to activate the virtual environment, it will work