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

关于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
http://www.lryc.cn/news/300726.html

相关文章:

  • macOS 安装 conda
  • C++并发编程 -3.同步并发操作
  • 【打工日常】使用docker部署可视化工具docker-ui
  • LGAMEFI基于BPL公链开发的第一生态:开启RWA游戏娱乐与DeFi融合的新纪元
  • AI专题:5G-A扬帆风正劲,踏AI增长新浪潮
  • C++Linux网络编程:poll模型和简单使用
  • Excel模板2:进度条甘特图
  • 数据结构:4_二叉树
  • 设计模式之:状态模式(State Pattern)
  • 【微服安全】API密钥和令牌与微服务安全的关系
  • Mock.js
  • 【c++】list详细讲解
  • C#面:在.NET中 类 System.Web.UI.Page 可以被继承吗?
  • AI:128-基于机器学习的建筑物能源消耗预测
  • php基础学习之可变函数(web渗透测试关键字绕过rce和回调函数)
  • MongoDB聚合操作符:$acos
  • 开源PDF工具 Apache PDFBox 认识及使用(知识点+案例)
  • 微软.NET6开发的C#特性——委托和事件
  • 卷积神经网络的基本结构
  • python:使用GDAL库读取遥感影像指定行列数/经纬度坐标的像素值
  • Redis篇----第一篇
  • C语言-----用二维数组解决菱形的打印问题
  • .NET Core WebAPI中使用swagger版本控制,添加注释
  • css篇---移动端适配的方案有哪几种
  • 一、部署Oracle
  • 11-编写自动化测试
  • 爱上JVM——常见问题(一):JVM组成
  • C#系列-EF扩展框架AutoMapper应用实例(40)
  • DataX源码分析-插件机制
  • 容器高级知识: 适配器模式与 Sidecar 模式的区别