机器学习写代码时遇到的问题(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
相关推荐
码点滴12 小时前
用自然语言指挥 K8s 集群:AI 运维 Agent 的架构原理与可运行原型
运维·人工智能·kubernetes
Wanderer X12 小时前
【LLM】PPO
人工智能
霍夫曼vx_helloworld735212 小时前
字符提取与字符识别
图像处理·人工智能·计算机视觉
Wang60712 小时前
浅尝claude code记忆系统
人工智能
郑寿昌12 小时前
AI时代动画游戏教育新变革
人工智能·游戏
LLWZAI12 小时前
不用大改原文,也能安稳通过朱雀 AI
人工智能
星座52812 小时前
零实验、AI融合:文献计量学SCI论文写作技巧(Citespace、VOSviewer的强大应用)
人工智能·citespace·文献计量学·sci·vosviewer
云烟成雨TD12 小时前
Spring AI Alibaba 1.x 系列【51】Graph 整体运行全流程
java·人工智能·spring
墨神谕12 小时前
Agent Skill从使用到原理
人工智能·ai
财经资讯数据_灵砚智能12 小时前
基于全球经济类多源新闻的NLP情感分析与数据可视化(日间)2026年5月13日
大数据·人工智能·python·信息可视化·自然语言处理