python virtualenv basic command: 一些基本的python virtuel environment的指令。
install virtualenv in ubuntu 18.04
$ wget https://bootstrap.pypa.io/get-pip.py
$ sudo python3 get-pip.py
$ sudo pip install virtualenv virtualenvwrapper
$ sudo rm -rf ~/get-pip.py ~/.cache/pip
python virtualenv basic command:
workon: list all your virtual environments.
mkvirtualenv: create a new environment
e.g. >mkvirtualenv mlpy37env -p python3.7
rmvirtualenv: remove a exists environment.
deactivate: akes you to your system environment. You can activate any of your virtual environments again at any time。
留言
張貼留言