离线安装Python库


  1. pip freeze > requirement.txt 得到库名与版本后,删除不用的库。
  2. pip download -d ./packages -r requirement.txt 下载离线库。
  3. 将刚下载的库和文件拷贝到离线设备上,执行 pip install --no-index --find-links=./packages -r requirement.txt

声明:东云小记|版权所有,违者必究|如未注明,均为原创|本网站采用BY-NC-SA协议进行授权

转载:转载请注明原文链接 - 离线安装Python库


Carpe Diem and Do what I like