当前位置: 首页 > news >正文

网文网站开发方案网站开发需求统计

网文网站开发方案,网站开发需求统计,如何快速建网站,中交建设集团有限公司关于jupyter的一些小笔记 1.Jupyter Notebook:单/多行注释,组合键:选中代码,按Ctrl /。 2.安装PHATE包 使用pip直接进行安装 pip install --user phate成功解决AttributeError: module ‘numpy’ has no attribute ‘float’. 报…

关于jupyter的一些小笔记

1.Jupyter Notebook:单/多行注释,组合键:选中代码,按Ctrl + /。
2.安装PHATE包
使用pip直接进行安装

pip install --user phate

成功解决AttributeError: module ‘numpy’ has no attribute ‘float’.
报错:

AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

解决方案一:
不用改代码,重新安装numpy就可以
出现这个问题的原因:np.float从1.24起被删除。所用的代码是依赖于旧版本的Numpy。可以将Numpy版本降级到1.23.5.

conda install numpy==1.23.5
http://mrfarshtey.net/news/18/

相关文章: