当前位置:网站首页>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边栏推荐
猜你喜欢

编曲软件FL studio20.8中文版功能和作用

APP special test: traffic test

联邦学习入门

Postman batch test interface detailed tutorial

小程序毕设作品之微信美食菜谱小程序毕业设计成品(5)任务书

关于ETL的两种架构(ETL架构和ELT架构)

Mini Program Graduation Works WeChat Food Recipe Mini Program Graduation Design Finished Product (8) Graduation Design Thesis Template

域名重定向工具 —— SwitchHosts 实用教程

求解多元多次方程解的个数

深度学习Course2第二周Optimization Algorithms习题整理
随机推荐
【数据分析03】
联邦学习的框架搭建
联邦学习在金融领域的发展和应用
深度学习Course2第一周Practical aspects of Deep Learning习题整理
关于ETL的两种架构(ETL架构和ELT架构)
使用 Zokrates 在 BSV 上创建您的第一个 zkSNARK 证明
罗克韦尔AB PLC RSLogix5000中的比较指令使用方法介绍
复现gallerycms字符长度限制短域名绕过
PAM 回文自动机
excel split text into different rows
npm包【详解】(内含npm包的开发、发布、安装、更新、搜索、卸载、查看、版本号更新规则、package.json详解等)
联邦学习入门
使用Jenkins做持续集成,这个知识点必须要掌握
数据分析04
毫秒级!千万人脸库快速比对,上亿商品图片检索,背后的极速检索用了什么神器?
如何给 UE4 场景添加游戏角色
SAP Spartacus NgExpressEngineDecorator 的工作原理
高等代数_证明_矩阵的任意特征值的代数重数大于等于其几何重数
[Niu Ke brush questions-SQL big factory interview questions] NO4. Travel scene (a taxi)
number of solutions to solve a multivariate multi-degree equation