官术网_书友最值得收藏!

How to do it...

To create an archive (from the official documentation: https://pip.pypa.io/en/latest/user_guide/#installation-bundles), perform the following:

  1. Create a temporary directory:
      $ tempdir = $(mktemp -d /tmp/archive_dir)
  1. Create a wheel file:
      $ pip wheel -r requirements.txt --wheel-dir = $tempdir
  1. Let the OS know where to place the archive file:
      $ cwd = `pwd`
  1. Change to the temporary directory and create the archive file:
      $ (cd "$tempdir"; tar -cjvf "$cwd/<archive>.tar.bz2" *)

To install from an archive, do the following:

  1. Create a temporary directory:
      $ tempdir=$(mktemp -d /tmp/wheelhouse-XXXXX)
  1. Change to the temporary directory and unarchive the file:
      $ (cd $tempdir; tar -xvf /path/to/<archive>.tar.bz2)
  1. Use pip to install the unarchived files:
      $ pip install --force-reinstall --ignore-installed --upgrade --no-index --no-deps $tempdir/*
主站蜘蛛池模板: 金乡县| 维西| 石嘴山市| 三亚市| 伊春市| 车致| 阿荣旗| 乐昌市| 西安市| 兴海县| 平度市| 葫芦岛市| 手游| 衡东县| 邵武市| 清新县| 武陟县| 衢州市| 贵德县| 巢湖市| 车致| 枞阳县| 龙门县| 德清县| 梅州市| 原阳县| 诏安县| 乐业县| 枣强县| 吴旗县| 苏尼特左旗| 福海县| 龙州县| 鄢陵县| 三门峡市| 山阳县| 阿鲁科尔沁旗| 屏东市| 中超| 阜南县| 威信县|