python download offline package

Table of contents

Export requirements.txt (offline library list file)

Download dependency packages offline

The first type (pip):

The second type (manual installation of source code package):


Export requirements.txt (offline library list file)

使用pip freeze > requirement.txt 导出文件requirement.txt

Download dependency packages offline

The first type (pip):

  1. Offline library export: pip download -d DIR -r LIST (where DIR is the offline library export path, and LIST is the offline library list path)
  2. Quick installation of offline libraries: pip install --no-index --find-links=DIR -r PATH (where DIR is the path to the offline library folder and PATH is the path to the offline library list file)

The second type (manual installation of source code package):

  1. Download uwsgi source code package,  Pypi official website download
  2. Unzip tar -zxvf uwsgi.tar.gz
  3. Enter directory cd uwsgi
  4. Install using python python setup.py install
  5. The installation is successful

Guess you like

Origin blog.csdn.net/dreams_dream/article/details/128305361