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

Package upgrades

More often than not, you will find yourself in a situation where you have to upgrade a package because either the new version is required by a dependency or it has additional features that you would like to use. First, check the version of the library you have installed by glancing at the __version__ attribute, as shown in the following example, numpy:

>>> import numpy
>>> numpy.__version__ # 2 underscores before and after
'1.11.0'

Now, if you want to update it to a newer release, say the 1.12.1 version, you can run the following command from the command line:

$> pip install -U numpy==1.12.1

Alternatively, you can use the following command:

$> easy_install --upgrade numpy==1.12.1

Finally, if you're interested in upgrading it to the latest available version, simply run the following command:

$> pip install -U numpy

You can alternatively run the following command:

$> easy_install --upgrade numpy
主站蜘蛛池模板: 呈贡县| 汶川县| 呈贡县| 张家港市| 伊吾县| 镶黄旗| 青海省| 东至县| 义乌市| 霞浦县| 成安县| 沧州市| 梁河县| 濮阳市| 河北区| 谢通门县| 崇州市| 藁城市| 方山县| 昭觉县| 图们市| 镇平县| 锦屏县| 棋牌| 武夷山市| 仁化县| 钟山县| 乌拉特中旗| 长宁县| 固原市| 仙居县| 岑溪市| 呈贡县| 上饶县| 桐庐县| 四平市| 伊川县| 金堂县| 青神县| 林州市| 信丰县|