ubuntu18.08创建python沙盒环境步骤
1、安装必要包组 pip3 install virtualenv pip3 install virtualenvwrapper 2.创建存放虚拟环境的路径 mkdir $HOME/.virtualenvs 3.编辑环境变量 sudo vim /etc/profile.d/pythonvps.sh export WORKON_HOME=$HOME/.virtualenvs export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 export VIRTUALENVWRAPPER_VIRTUALENV=~/.local/bin/virtualenv source ~/.local/bin/virtualenvwrapper.sh 4.生效 . /etc/profile.d/pythonvps.sh 5.测试 workon ================ mkvirtualenv python_django deactivate
jiapengchu
posted on 2021-01-01 22:57 jiapengchu 阅读(198) 评论(0) 编辑 收藏 举报