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

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
主站蜘蛛池模板: 通化县| 德化县| 桃源县| 奇台县| 筠连县| 响水县| 靖宇县| 卓资县| 修水县| 龙州县| 格尔木市| 南安市| 武宁县| 宜昌市| 舒城县| 阿拉善盟| 隆子县| 和政县| 江津市| 日照市| 鞍山市| 丰原市| 衡阳市| 贡嘎县| 申扎县| 海宁市| 临夏市| 大庆市| 铜鼓县| 壶关县| 区。| 北宁市| 东乡县| 光泽县| 隆昌县| 龙南县| 上饶市| 美姑县| 旅游| 阜城县| 黄龙县|