zoukankan      html  css  js  c++  java
  • python之项目依赖管理

      生成所有依赖清单 requirements.txt

    1.  pipreqs 工具

      安装)

      

    pip install pipreqs

      执行生成依赖列表命令)

    pipreqs ./

    完善版本:

    pipreqs ./ --encoding=utf-8

    使用requirements.txt自动安装所有依赖包

    pip install -r requirements.txt

    2) 导出所有的python依赖

    pip freeze > requirements.txt

    requirements.txt  说明:

    -r base.txt # base.txt下面的所有包
    pypinyin==0.12.0 # 指定版本(最日常的写法)
    django-querycount>=0.5.0 # 大于某个版本
    django-debug-toolbar>=1.3.1,<=1.3.3 # 版本范围
  • 相关阅读:
    正则
    cookie、sesion
    POJ-1509
    HDU-3374
    ZOJ-3822
    HDU-5492
    在什么情况下Java比C++快?
    HDU-5451
    SPOJ-913
    莫比乌斯反演入门
  • 原文地址:https://www.cnblogs.com/xingxia/p/python_depends_package_manager.html
Copyright © 2011-2022 走看看