Windows10(linux) 下使用virtualenv 管理自己的虚拟环境
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
![](https://devpress.csdnimg.cn/6deffb34f7114cc1a2e1e686a67e0027.png)
·
-
1需要安装的包:pip install virtualenv
pip install virtualenvwrapper-win -
2 安装完之后配置一下环境变量就可以使用了。
-
使用命令: mkvirtualenv -p python解释器版本 虚拟环境名称。
-
创建也可以用 virtualenv -p python 解释器版本 虚拟环境名称。
-
删除虚拟环境: rmvirtualenv 虚拟环境。
-
查看虚拟环境 : workon .
-
推出虚拟环境: deactivate 。
3 .配置虚拟环境的系统变量。如图:
-
1 在Linux 下依次次安装
pip install virtualenv pip install virtualenv-clone pip install virtualenvwrapper
-
2 安装完之后在.bashrc 文件末尾追加
echo """export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/workspace
source /usr/local/bin/virtualenvwrapper.sh""" >> .bashrc
- 3 source .bashrc
![]( https://profile-avatar.csdnimg.cn/default.jpg)
![](https://devpress.csdnimg.cn/7174e1ca86c447029bb12f9ec0bd281c.png)
![](https://devpress.csdnimg.cn/096f7827187446559bd7b6030eb5db38.png)
![](https://devpress.csdnimg.cn/6deffb34f7114cc1a2e1e686a67e0027.png)
A beautiful web dashboard for Linux
最近提交(Master分支:5 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
所有评论(0)