zoukankan      html  css  js  c++  java
  • python VENV 环境 requirements.txt的生成、使用

     

    python项目 requirements.txt 文件,记录所有依赖包及其精确的版本号。用于新环境部署。

    在虚拟环境中pip生成命令(正常环境类似):

    (venv) $ pip freeze >requirements.txt

    安装或升级包后,最好更新这个文件。

    requirements文件的内容示例如下:

    amqp==1.4.9
    anyjson==0.3.3
    asn1crypto==0.24.0
    Babel==2.6.0
    bcrypt==3.1.4
    billiard==3.3.0.23
    celery==3.1.26.post2
    certifi==2018.10.15
    cffi==1.11.5
    chardet==3.0.4
    colorama==0.4.0
    colorlog==3.1.4
    cryptography==2.3.1

    新环境部署,运行以下命令安装需要的包:

    (venv) $ pip install -r requirements.txt


  • 相关阅读:
    C++基础学习1-编译与链接
    html学习
    使用BP拦截POST请求包
    2019.9.17
    搭建LAMP环境
    2019.9.16
    2019.9.12
    2019.9.11
    手脱无名壳tslgame_rl
    一款自制壳的脱壳
  • 原文地址:https://www.cnblogs.com/yoyo008/p/9923092.html
Copyright © 2011-2022 走看看