设为首页 加入收藏

TOP

Pipenv的简单使用
2019-09-04 01:01:12 】 浏览:26
Tags:Pipenv 简单 使用

安装

$ pip install pipenv

安装虚拟环境

pipenv install

新建一个准备当环境的文件夹pipenvtest,并cd进入该文件夹:

- pipenv --three   会使用当前系统的Python3创建环境
- pipenv --python 3.6 指定某一Python版本创建环境
- pipenv shell 激活虚拟环境
- pipenv --where  显示目录信息
/home/jiahuan/pipenvtest
- pipenv --venv  显示虚拟环境信息
/home/jiahuan/.local/share/virtualenvs/pipenvtest-9KKRH3OW
- pipenv --py  显示Python解释器信息
/home/jiahuan/.local/share/virtualenvs/pipenvtest-9KKRH3OW/bin/python
- pipenv install requests 安装相关模块并加入到Pipfile
- pipenv install django==1.11
安装固定版本模块并加入到Pipfile
- pipenv graph 查看目前安装的库及其依赖
pipenv check检查安全漏洞
pipenv uninstall --all 卸载全部包并从Pipfile中移除
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Python 入门之 递归 下一篇解决Flask错误“TypeError: '..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目