一、Pipenv的作用

Pipenv是python的依赖管理工具,可以看做是pip与virtualenv的结合体。Pipenv会自动帮助你管理虚拟环境和依赖文件,并且提供一系列命令和选项来帮助你实现各种依赖和环境管理的相关操作

二、安装与使用

1、安装

pip install pipenv

2、选项说明

Usage: pipenv [OPTIONS] COMMAND [ARGS]...Options:--where          Output project home information.--venv           Output virtualenv information.--py             Output Python interpreter information.--envs           Output Environment Variable options.--rm             Remove the virtualenv.--bare           Minimal output.--completion     Output completion (to be eval'd).--man            Display manpage.--three / --two  Use Python 3/2 when creating virtualenv.--python TEXT    Specify which version of Python virtualenv should use.--site-packages  Enable site-packages for the virtualenv.--version        Show the version and exit.-h, --help       Show this message and exit.Usage Examples:Create a new project using Python 3.7, specifically:$ pipenv --python 3.7Remove project virtualenv (inferred from current directory):$ pipenv --rmInstall all dependencies for a project (including dev):$ pipenv install --devCreate a lockfile containing pre-releases:$ pipenv lock --preShow a graph of your installed dependencies:$ pipenv graphCheck your installed dependencies for security vulnerabilities:$ pipenv checkInstall a local setup.py into your virtual environment/Pipfile:$ pipenv install -e .Use a lower-level pip command:$ pipenv run pip freezeCommands:check      Checks for PyUp Safety security vulnerabilities and against PEP508 markers provided in Pipfile.clean      Uninstalls all packages not specified in Pipfile.lock.graph      Displays currently-installed dependency graph information.install    Installs provided packages and adds them to Pipfile, or (if nopackages are given), installs all packages from Pipfile.lock       Generates Pipfile.lock.open       View a given module in your editor.run        Spawns a command installed into the virtualenv.scripts    Lists scripts in current environment config.shell      Spawns a shell within the virtualenv.sync       Installs all packages specified in Pipfile.lock.uninstall  Uninstalls a provided package and removes it from Pipfile.update     Runs lock, then sync.

3、常见使用流程

# 1.建立虚拟环境
pipenv install# 2.进入虚拟环境
pipenv shell# 3.安装需要模块
pip install xxx模块
pipenv install xxx模块# 3.1.卸载不需要模块
pipenv uninstall xxx模块# 4.用虚拟环境运行相关命令(若已经进入虚拟环境,则可直接输入相关命令)
pipenv run cmd相关命令# 5.删除虚拟环境
pipenv --rm

Pipenv(项目虚拟环境与依赖管理工具)的简单使用教程相关推荐

  1. GoLand2021使用包依赖管理工具 Go Modules

    GoLand2021使用包依赖管理工具 文章目录 GoLand2021使用包依赖管理工具 前言 一.创建空项目 二.配置项目的GOPATH 1.设置GOPATH目录 三.使用 Go Modules 1 ...

  2. go build不从本地gopath获取_跟我一起学习go语言,包依赖管理工具go mod

    Go Module是Go会在1.12中正式推出的包管理机制. Go mod 简介 Golang一直存在一个被人诟病的问题是缺少一个官方的包依赖管理工具.从我个人的角度上来看存在两个问题: GOPATH ...

  3. linux go vendor目录,Go 包依赖管理工具 —— govendor

    govendor 是一个基于 vendor 机制实现的 Go 包依赖管理命令行工具.与原生 vendor 无侵入性融合,也支持从其他依赖管理工具迁移,可以很方便的实现同一个包在不同项目中不同版本.以及 ...

  4. PHP依赖管理工具Composer配置安装及基本使用

    一.介绍 Composer是PHP中的一个依赖管理工具. 它可以让你声明自己项目所依赖的库,然后它将会在项目中为你安装这些库.就像是node的npm和ruby的bundler差不多. 二.window ...

  5. go之官方依赖管理工具dep安装和使用

    前言 大家都知道go没有一个自己的包管理平台.社区里go的第三方包托管在各个git托管平台.需要用到包时通过go get 命令工具安装,但这个工具没有版本描述性文件,在go的世界里没有"pa ...

  6. Golang依赖管理工具:glide从入门到精通使用

    2019独角兽企业重金招聘Python工程师标准>>> 介绍 不论是开发Java还是你正在学习的Golang,都会遇到依赖管理问题.Java有牛逼轰轰的Maven和Gradle. G ...

  7. 安装Objective-C的依赖管理工具CocoaPods

    CocoaPods--Swift 与 Objective-C 项目的依赖管理工具,iOS 开发者的必备技能.如果你没有任何 CocoaPods 经历,那么这篇短文就是为你而写.我们将会学到什么是 Co ...

  8. dep指定版本 go_Go依赖管理工具 - dep

    Go依赖管理工具 Go dependency management tool 环境要求 Golang >= 1.9 Dep 目前版本: dep: version : devel build da ...

  9. window下PHP依赖管理工具Composer的安装与使用

    一.什么是Composer? Composer 是 PHP 的一个依赖管理工具.我们可以在项目中声明所依赖的外部工具库,Composer 会帮你安装这些依赖的库文件,有了它,我们就可以很轻松的使用一个 ...

最新文章

  1. 这3句屁话,关键时刻能救命
  2. vs使用了未初始化的局部变量怎么解决_C程序为什么要初始化?
  3. 教学计划计算机,计算机教学计划模板
  4. 关于CPU的一些基本知识总结
  5. Java二十三设计模式之------迭代子模式
  6. python安装api_Python API文档
  7. 直觉模糊有计算机知识嘛,多源直觉模糊信息系统的知识获取方法
  8. Baseball Game
  9. linux和unix的关系
  10. wpsppt放映时间_利用WPS演示制作PPT计时器的两种方法
  11. 英语教学计划软件测试,第一学期英语教学计划
  12. 脑洞大开!华为云桌面和无纸化会议系统结合会怎样?
  13. 【机翻】xenomai RTnet – 灵活的硬实时网络框架
  14. python去除重复单词_Python程序,用于删除给定句子中的所有重复单词。
  15. HTML超链接标签—链接QQ在线聊天
  16. 担任电气工程师,在软件开发方面建立成功的职业生涯
  17. 企业价值角度:RPA 机器人是什么?
  18. [html] 写一个鼠标跟随的特效
  19. Ubuntu自动校准时间
  20. 群晖216j使用web station部署librespeed下载无速度的解决方法

热门文章

  1. 【云计算的1024种玩法】自己搭游戏服务器:我的世界Minecraft
  2. 华为如何分屏_华为MatePad Pro智慧分屏如何?
  3. Spring定时任务scheduled
  4. 【JVM系列】一步步解析java执行内幕
  5. hive:函数:字符串函数
  6. IM:手机客户端和服务端通信的资料
  7. 压力测试随笔之:JMeter,LoadRunner 相得益彰
  8. 【Paper】CNN-LSTM:Long-term Recurrent Convolutional Networks for Visual Recognition and Description
  9. 苹果电脑视频误删恢复图文教程
  10. 数据透视表初级班(10118班)第一课时小结