NumPy v1.17.2 发已经布,NumPy是使用Python进行科学计算的基础包。它包含其他内容:
- 强大的N维数组对象
- 复杂(广播)功能
- 用于集成C/C ++和Fortran代码的工具
- 有用的线性代数,傅里叶变换和随机数功能
除了明显的科学用途外,NumPy还可以用作通用数据的高效多维容器。可以定义任意数据类型。这使NumPy能够无缝快速地与各种数据库集成。
此版本包含针对NumPy 1.17.1报告的错误的修复程序以及一些文档改进。 当键是 (u)int8 或 (u)int16时,最重要的修复是lexsort。 如果您当前使用的是1.17,则应升级。
此版本支持的Python版本为3.5-3.7,Python 2.7已被删除。 Python 3.8b4应该与已发布的源包一起使用,但是没有未来的保证。
下游开发人员应使用Cython >= 0.29.13进行Python 3.8支持,使用OpenBLAS >= 3.7以避免Skylake架构出错。 PyPI上的NumPy是从OpenBLAS开发分支构建的,以避免这些错误。
查看NumPy版本
[linuxidc@localhost www.linuxidc.com]$ pip3 show numpy
Name: numpy
Version: 1.17.2
Summary: NumPy is the fundamental package for array computing with Python.
Home-page: https://www.numpy.org
Author: Travis E. Oliphant et al.
Author-email: None
License: BSD
Location: /home/linuxidc/.local/lib/python3.7/site-packages
Requires:
Required-by: scipy, MyQR, matplotlib, imageio
如下图:
此版本共合并了8个pull requests。
- #14418: BUG: Fix aradixsort indirect indexing.
- #14420: DOC: Fix a minor typo in dispatch documentation.
- #14421: BUG: test, fix regression in converting to ctypes
- #14430: BUG: Do not show Override module in private error classes.
- #14432: BUG: Fixed maximum relative error reporting in assert_allclose.
- #14433: BUG: Fix uint-overflow if padding with linear_ramp and negative…
- #14436: BUG: Update 1.17.x with 1.18.0-dev pocketfft.py.
- #14446: REL: Prepare for NumPy 1.17.2 release.
如何升级numpy的版本,如下图:
[linuxidc@localhost www.linuxidc.com]$ pip3 install --user -U numpy
查看numpy版本;如下图:
[linuxidc@localhost www.linuxidc.com]$ pip3 show numpy
Name: numpy
Version: 1.17.1
Summary: NumPy is the fundamental package for array computing with Python.
Home-page: https://www.numpy.org
Author: Travis E. Oliphant et al.
Author-email: None
License: BSD
Location: /home/linuxidc/.local/lib/python3.7/site-packages
Requires:
Required-by: scipy, MyQR, matplotlib, imageio
降低numpy的版本,如下图:
[linuxidc@localhost www.linuxidc.com]$ pip install -U numpy==1.17.0
更多Python相关信息见Python 专题页面 https://www.linuxidc.com/topicnews.aspx?tid=17
Linux公社的RSS地址:https://www.linuxidc.com/rssFeed.aspx
本文永久更新链接地址:https://www.linuxidc.com/Linux/2019-09/160545.htm