• pipenv使用


    首先:

      安装pipenv

        pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv 使用国内源安装pipenv

      创建文件夹

      mkdir fisher

      进入文件夹,执行pipenv shell 启动pipenv

      在pipenv虚拟环境中执行:

      pip3 list 查看这个虚拟环境有哪些安装包

      pipenv graph 可以查看依赖关系

      pipenv install flask 安装包

      pipenv --venv查看这个虚拟环境所属目录,在pycharm中添加
    在使用pipenv之前,必须彻底的忘记pip这个东西

    新建一个准备当环境的文件夹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 查看目前安装的库及其依赖

  • 相关阅读:
    致21岁的自己
    nginx 入门实战
    软件测试的分类
    Springboot 使用 Jedis
    NodeJS模块、包、NPM
    NodeJS介绍
    毫秒必争,前端网页性能最佳实践--转载
    IT主要在线学习网站
    电商峰值系统架构设计--转载
    查看w3wp进程占用的内存及.NET内存泄露,死锁分析--转载
  • 原文地址:https://www.cnblogs.com/wangdongpython/p/10823003.html
Copyright © 2020-2023  润新知