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

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
主站蜘蛛池模板: 清河县| 色达县| 嘉善县| 陕西省| 万安县| 霍邱县| 财经| 临湘市| 集贤县| 丰都县| 宝山区| 仁布县| 阜宁县| 兴仁县| 铁岭市| 师宗县| 靖宇县| 龙门县| 临漳县| 封丘县| 云浮市| 连州市| 漯河市| 兴文县| 龙泉市| 平邑县| 钦州市| 上栗县| 泰州市| 方山县| 石楼县| 延安市| 福海县| 大姚县| 宜春市| 西城区| 措勤县| 海安县| 扎鲁特旗| 贵溪市| 陵水|