【python】venv使用

virtualenvwrapper 比 virualenv 好用一些。

准备

export WORKON_HOME=~/venv

source /usr/bin/virtualenvwrapper.sh

创建环境

mkvirtualenv xxx

使用环境

workon xxx

退出环境

deactivate

猜你喜欢

转载自www.cnblogs.com/yesuuu/p/10537067.html