机器学习写代码时遇到的问题(23.11.9)

AttributeError: module 'backend_interagg' has no attribute 'FigureCanvas'

导包的时候改一下

python 复制代码
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt

UserWarning: Glyph 27425 (\N{CJK UNIFIED IDEOGRAPH-6B21}) missing from current font. func(*args)

显示中文出问题

python 复制代码
# 汉字字体,优先使用楷体,找不到则使用黑体
plt.rcParams['font.sans-serif'] = ['Kaitt', 'SimHei']  

ImportError: `iplot` can only run inside an IPython Notebook.

pip install ipython

ValueError: Mime type rendering requires nbformat>=4.2.0 but it is not installed

使用iplot出错

复制代码
plotly.offline.iplot(plot_figure)

更新库:

python 复制代码
pip install --upgrade nbformat
相关推荐
AI多Agent协作实战派3 小时前
【AI探索历程17】从“给自己用“到想“让别人用“
人工智能
吴佳浩3 小时前
Memory Provider 实战:Hermes、Mem0、Honcho、Hindsight 为什么都这样设计?
人工智能·agent·ai编程
吴佳浩4 小时前
企业级 Agent Memory 选型指南:如何构建可扩展的 Memory Service?
人工智能·agent·ai编程
北方的银狐-Zero5 小时前
ERP 管执行,数据管标准,OntoL本体 管思考:企业智能化升级的规划图
大数据·人工智能·本体论
浅安的邂逅5 小时前
260918-白帽把 OpenAI 论坛“打穿“了:攻防赛漏洞、账户被 Claude 入侵、模型偷偷掩盖不当行为
人工智能·大模型·ai编程·ai模型·行业动态
jinyishu_5 小时前
认识 AI Agent:概念、架构、设计模式与主流框架
人工智能
Hrain-AI5 小时前
AI 爬虫三档授权工程落地:搜索放行、训练拦截、Agent 分层(附脚本)
人工智能·elasticsearch·milvus
sunhy_csdn5 小时前
“词码”作为 Token 候选译名
人工智能
Hrain-AI6 小时前
多 Agent 并行不打架:worktree 隔离与反馈回流落地(附脚本)
网络·数据库·人工智能·架构