关于jupyter的一些小笔记

关于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

相关推荐

  1. 关于jupyter一些笔记

    2024-02-16 16:58:02       49 阅读
  2. 一些关于网络笔记

    2024-02-16 16:58:02       33 阅读
  3. 关于C++一些知识点

    2024-02-16 16:58:02       48 阅读
  4. 关于Jupyter相关问题

    2024-02-16 16:58:02       39 阅读
  5. 关于Mybatis一个问题

    2024-02-16 16:58:02       57 阅读
  6. 关于with torch.no_grad:一些问题

    2024-02-16 16:58:02       59 阅读
  7. 关于python vue influxdb一切 笔记

    2024-02-16 16:58:02       62 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-02-16 16:58:02       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-02-16 16:58:02       106 阅读
  3. 在Django里面运行非项目文件

    2024-02-16 16:58:02       87 阅读
  4. Python语言-面向对象

    2024-02-16 16:58:02       96 阅读

热门阅读

  1. 【深度学习】S2 数学基础 P4 概率论

    2024-02-16 16:58:02       56 阅读
  2. 小说创作系统C++

    2024-02-16 16:58:02       52 阅读
  3. 【BIP39和BIP44】

    2024-02-16 16:58:02       51 阅读
  4. 预训练和微调在迁移学习中的作用

    2024-02-16 16:58:02       45 阅读
  5. 【前端工程化面试题】简单说一下 vite 的原理

    2024-02-16 16:58:02       63 阅读
  6. 蓝桥杯(Web大学组)2023省赛真题:视频弹幕

    2024-02-16 16:58:02       59 阅读
  7. 【c/c++】获取时间

    2024-02-16 16:58:02       51 阅读
  8. LInux、源码编译安装

    2024-02-16 16:58:02       49 阅读