Lingkungan Virtual Python
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 "/" !!!!!
pip install --user virtualenv
py -m venv env
.\env\Scripts\activate
$ pip install virtualenv
#------FOR LINUX/MAC---------#
sudo apt-get install build-essential libssl-dev libffi-dev python-dev #installing requirements
sudo apt-get install -y python3-venv #installing venv
python3 -m venv env #creating virtual env
source env/bin/activate #activating virtual env
#-------FOR WINDOWS----------#
py -m pip install --user virtualenv #installing venv
py -m venv env #creating virtual env
.\env\Scripts\activate #activating virtual env
$ virtualenv --version