zoukankan      html  css  js  c++  java
  • pip freeze、dowload打离线包及自动安装 + Virtual Environment的使用 + python3.9安装

    0. python3.9 https://blog.csdn.net/redhat0921/article/details/110250230

    1、导出

    pip freeze >  requirements.txt

    2、在其他环境安装

    pip install -r  requirements.txt  

    ---------------------------------------------------------

    1、离线包

    pip download  -r requestments.txt  -d  ./pip_packages    #从当前环境的网络中下载requestments.txt中写的包,下载到当前目录下的pip_packages目录中,这时候你会发现,里面有很多依赖,还有一些whl文件
    
    ---------------------------------------------------------

    2、安装

    pip install --no-index --find-links=d:packages -r requirements.txt 
    # --find-links指定的是包文件的存放地址,-r指定的是txt文件的位置
    参考:https://www.cnblogs.com/NaughtyCat/p/python-pip-freeze-to-package-offline-packages.html
    https://www.cnblogs.com/qxh-beijing2016/p/13187153.html

    ------------------------------------------------------------------------------------------------------


    用一个例子来演示会更加清晰
  • 相关阅读:
    P2324 [SCOI2005]骑士精神
    Codeforces Round #574 (Div. 2) A~E Solution
    P4132 [BJOI2012]算不出的等式
    spring笔记(三)
    spring笔记(二)
    C3P0连接池参数解释
    spring笔记(一)
    hibernate笔记(四)
    hibernate笔记(三)
    hibernate笔记(二)
  • 原文地址:https://www.cnblogs.com/hixiaowei/p/14335903.html
Copyright © 2011-2022 走看看