gpt4 book ai didi

python-3.x - 模块 'matplotlib' 没有属性 'colors'

转载 作者:行者123 更新时间:2023-12-05 02:17:31 25 4
gpt4 key购买 nike

我正在 Windows 上运行 Python3 64 位的 Anaconda 安装。我不知道如何把这些词放在一个合适的句子中,但我希望它能提供足够的信息。我正在参加 Udacity 类(class),该类(class)要求我运行 %matplotlib inline。这会产生以下错误:

AttributeError: module 'matplotlib' has no attribute 'colors'

当我运行 from matplotlib import pylab 时,我得到了同样的错误,但是我从 import matplotlib 中没有得到任何错误。

我按如下方式安装了 matplotlib:conda install -n tensorflow -c conda-forge matplotlib

如何解决这个错误?

亲切的问候

根据请求:
conda 列表 给出

matplotlib 2.1.0 py36_1 conda-forge

和其他模块的列表。

最佳答案

需要重新启动笔记本才能使新安装生效。

关于python-3.x - 模块 'matplotlib' 没有属性 'colors',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47497097/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com