218*_*218 8 python numpy scipy python-2.7 deprecation-warning
我有一些python代码使用numpy并已成功运行一年或更长时间.我上周突然遇到以下错误:
/usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.py:2507: VisibleDeprecationWarning: `rank` is deprecated; use the `ndim` attribute or function instead. To find the rank of a matrix see `numpy.linalg.matrix_rank`.
VisibleDeprecationWarning)
Run Code Online (Sandbox Code Playgroud)
我在网上找不到多少,但我发现这是因为旧版scipy中的一个错误(虽然我的代码实际上并没有直接使用scipy).我用numpy 1.9.2和scipy 0.15.1升级到python 2.7.9,但是我仍然得到同样的错误.我不确定是什么导致这种情况,或者我如何解决这个问题.
| 归档时间: |
|
| 查看次数: |
5837 次 |
| 最近记录: |