我试图在我的conda环境(python 3.6)中使用matplotlib,但出现此错误。有谁知道如何解决这个问题?
import matplotlib.pyplot as plt
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
....
C:\ProgramData\Anaconda3\lib\site-packages\matplotlib\tri\triangulation.py in <module>()
4 import six
5
----> 6 import matplotlib._tri as _tri
7 import matplotlib._qhull as _qhull
8 import numpy as np
AttributeError: module 'matplotlib' has no attribute '_tri'
请让我知道是否需要发布该错误的更多详细信息
答案 0 :(得分:0)
我觉得您的二进制文件不匹配,很遗憾,由于我的工作正常,我无法重现您的错误。
(1):也许尝试卸载matplotlib,然后再次重新安装
conda uninstall matplotlib
conda install matplotlib
(2)尝试输出conda list
和conda info
,然后对其进行分析或将其发布在此处,以便我们可以对其进行分析?
(3)尝试以下命令,也许它们会起作用:
conda update --all
(4)如果不起作用,请卸载Anaconda并尝试重新安装其最新版本。