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

How to do it...

  1. Use pip to pull the latest version of the package directly from PyPI:
      $ pip install <package_name>
  1. Alternately, a specific version of the package can be downloaded:
      $ pip install <package_name>==1.2.2

Here is an example of downgrading pygments from our earlier install in pipenv:

  1. As a final option, a minimum version of a package can be downloaded; this is common when a package has a significant change between versions:
      $ pip install "<package_name> >= 1.1"
  1. If a PyPI package has a wheel file available, pip will automatically download the wheel; otherwise, it will pull the source code and compile it.
      $ pip install <some_package>
  1. To install a local wheel file, provide the full path to the file:
      $ pip install /local_files/SomePackage-1.2-py2.py3-none-any.whl
主站蜘蛛池模板: 泗阳县| 焉耆| 漳浦县| 五家渠市| 双江| 安塞县| 定结县| 西乌珠穆沁旗| 台安县| 双柏县| 济源市| 方正县| 丘北县| 张家界市| 铜山县| 秦安县| 瑞安市| 平凉市| 瑞安市| 新田县| 塘沽区| 靖西县| 普宁市| 滦南县| 姜堰市| 仁化县| 栾城县| 吕梁市| 祁阳县| 蕲春县| 巴里| 丽江市| 南靖县| 龙州县| 永福县| 都匀市| 昭平县| 阜平县| 高尔夫| 西乌珠穆沁旗| 鹤岗市|