Python虚拟开发环境pipenv
2024-09-29 18:42:07
简介
requests库的作者,requests库的作者,requests库的作者(重要的事情说三遍)的又一力作,囊落了virtualenv, pip, pipfile等作为虚拟开发环境的命令行工具
安装
pip install pipenv
使用
创建虚拟开发环境的文件夹
mkdir myscan && cd myscan
在文件夹下创建虚拟开发环境并激活与退出
pipenv --three 或者(pipenv --python 3.6)
pipenv shell
exit
显示当前虚拟开发环境的目录以及其他信息(虚拟开发环境的名字)
pipenv --where
pipenv --venv
库的安装及其查看
pipenv install xxx(或者xxx==1.1.1)
pipenv graph 查看依赖
pip list
pip uninstall xxx
单独安装模块后会自动将新模块信息添加到pipfile中, 要同时更新pipfile.lock需要运行: pipenv lock
鸣谢参考文献
https://blog.csdn.net/chroming/article/details/77104873?locationNum=4&fps=1
https://blog.csdn.net/qq_41185868/article/details/79848923
https://www.jianshu.com/p/00af447f0005
最新文章
- node.js 入门实例【转】
- Devexpress 等待窗体
- 补充$.extend()
- Java程序编译和运行的过程
- 使用PHP发送邮件
- spring 解析配置文件问题
- JAVA对象是如何占用内存的
- AngularJS 路由:ui-router
- ASP转PHP手记
- css3 在线编辑工具 连兼容都写好了
- poj 3368 Frequent values(段树)
- hdu 2451 Simple Addition Expression(数位DP )成败在于细节
- PAT (Advanced Level) 1073. Scientific Notation (20)
- C++异常处理基本思想
- FPGA学习笔记(四)——Verilog基本语法
- 大数加法~HDU 1002 A + B Problem II
- js中数组的map()方法
- Spring Boot基础:Spring Boot简介与快速搭建(1)
- React中redux表单编辑
- 3.python集合