pipenv 命令笔记

本文详细介绍了pipenv的安装、虚拟环境管理、包安装与卸载、更新、依赖图展示、安全检查以及与pyenv的集成。此外,还讨论了如何利用.env文件设置环境变量,并提供了官方文档链接供深入学习。
摘要由CSDN通过智能技术生成

1. 安装: pip install pipenv

		mac: `brew install pipenv`

2. 使用:

  1. 创建虚拟环境,指定Python版本----Create a new project using Python 3.7, specifically:
    $ pipenv --python 3.7

    pipenv --python 3
    pipenv --python 3.6
    pipenv --python 2.7.14
    
  2. 删除项目虚拟环境----Remove project virtualenv (inferred from current directory):
    $ pipenv --rm

  3. 安装包----Install all dependencies for a project (including dev):
    pipenv install --dev requests==2.13.0
    pipenv install requests==2.13.0

  4. 创建预发布的lockfile----Create a lockfile containing pre-releases:
    $ pipenv lock --pre

  5. 查看依赖图 Show a graph of your installed dependencies:
    $ pipenv graph

  6. Check your installed depende

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值