- Python Data Science Essentials
- Alberto Boschetti Luca Massaron
- 150字
- 2021-08-13 15:19:30
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
推薦閱讀
- 大數據技術基礎
- Getting Started with Containerization
- UTM(統一威脅管理)技術概論
- PyTorch Deep Learning Hands-On
- 3D Printing for Architects with MakerBot
- 突破,Objective-C開發速學手冊
- LAMP網站開發黃金組合Linux+Apache+MySQL+PHP
- Mastering Geospatial Analysis with Python
- 工業機器人實操進階手冊
- 網絡脆弱性掃描產品原理及應用
- Dreamweaver+Photoshop+Flash+Fireworks網站建設與網頁設計完全實用
- 數據要素:全球經濟社會發展的新動力
- 傳感器原理與工程應用
- 運動控制系統(第2版)
- 30天學通Java Web項目案例開發