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

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
主站蜘蛛池模板: 常宁市| 钟山县| 西昌市| 邻水| 伊通| 上高县| 衡水市| 方山县| 金秀| 微山县| 马公市| 屯昌县| 玉龙| 阳谷县| 论坛| 资兴市| 张家口市| 平江县| 鸡泽县| 连州市| 多伦县| 樟树市| 屯昌县| 葵青区| 杨浦区| 宁陵县| 嘉黎县| 肇庆市| 中西区| 文山县| 洛川县| 安西县| 洛隆县| 濮阳县| 大埔县| 庐江县| 浙江省| 长兴县| 广宗县| 旬邑县| 河源市|