当前位置:网站首页>Create virtual environments with virtualenv and Virtualenvwrapper virtual environment management tools
Create virtual environments with virtualenv and Virtualenvwrapper virtual environment management tools
2022-08-01 22:37:00 【Weft Collar Network】
First, use virtualenv
1. Install virtualenv
pip install -i https://pypi.douban.com/simple/ --trusted-host pypi.douban.com virtualenv2. Create a running environment
virtualenv [virtual environment name]virtualenv venv#If you don't want to use the system package, add the --no-site-packages parametervirtualenv --no-site-packages create pathname3. Activate the environment
Under linux
$ source ./bin/activateUnder windows
.\Scripts\activate.bat4. Exit the environment
deactivate
5. Delete the environment
You can delete the venv folder directly to delete the environment
Second, use Virtualenvwrapper
Virtaulenvwrapper is an extension of virtualenv for easier managementVirtual Environment, it can do: - Integrate all virtual environments in one directory - Manage (add, delete, copy) virtual environment - quickly switch virtual environment
1. Installation
# under Windowspip install virtualenvwrapper-win# Under macOS / Linuxpip install --user virtualenvwrapper# load environment variablesecho "source virtualenvwrapper.sh" >> ~/.bashrcsource ~/.bashrc2. Create a virtual environment
# under macOS/Linuxmkvirtualenv --python=python3.6 venv# under Windowsmkvirtualenv --python=python3 venv3. Activate the virtual environment
workon #List the virtual environment listworkon [venv] #Switch environment4. Exit the environment
deactivate5. Delete the environment
rmvirtualenv venv边栏推荐
- SOM网络2: 代码的实现
- npm包【详解】(内含npm包的开发、发布、安装、更新、搜索、卸载、查看、版本号更新规则、package.json详解等)
- 小程序毕设作品之微信美食菜谱小程序毕业设计成品(5)任务书
- leetcode刷题
- 程序员必备的 “ 摸鱼神器 ” 来了 !
- excel split text into different rows
- [ASM] Bytecode Operation MethodWriter
- leetcode 204. Count Primes 计数质数 (Easy)
- 小程序毕设作品之微信体育馆预约小程序毕业设计成品(2)小程序功能
- 深度学习Course2第二周Optimization Algorithms习题整理
猜你喜欢

SOM Network 2: Implementation of the Code

2022 版 MySQL 巅峰教程,收藏好,慢慢看

Still struggling with reporting tool selection?To take a look at this

Recycling rental system 100% open source without encryption Mall + recycling + rental

小程序毕设作品之微信体育馆预约小程序毕业设计成品(4)开题报告

03、GO语言变量定义、函数

Analysis of the development trend of game metaverse

下载安装 vscode(含汉化、插件的推荐和安装)

感觉自己好傻

blender3.2.1 unit setting
随机推荐
工程建筑行业数据中台指标分析
易周金融分析 | 银行ATM机智能化改造提速;互联网贷款新规带来挑战
华为无线设备配置双链路冷备份(AP指定配置方式)
联邦学习在金融领域的发展和应用
Graph Theory - Strongly Connected Component Condensation + Topological Sort
高等代数_证明_矩阵的行列式为特征值之积, 矩阵的迹为特征值之和
Still struggling with reporting tool selection?To take a look at this
小程序毕设作品之微信美食菜谱小程序毕业设计成品(6)开题答辩PPT
leetcode刷题
excel cell contian two words, seperated by a slash
【C补充】链表专题 - 单向链表
Ten years after graduation, financial freedom: those things that are more important than hard work, no one will ever teach you
img 响应式图片的实现(含srcset属性、sizes属性的使用方法,设备像素比详解)
RxJs SwitchMapTo 操作符之移花接木
【Verilog刷题篇】硬件工程师从0到入门1|基础语法入门
vscode hide menu bar
移动端人脸风格化技术的应用
[机缘参悟-58]:《素书》-5-奉行仁义[遵义章第五]
SOM网络2: 代码的实现
今日睡眠质量记录74分