模块“ matplotlib”没有属性“ _get_configdir”

时间:2019-10-07 09:37:30

标签: python matplotlib anaconda

我正在使用python 3.7.1,最近当我尝试运行matlplotlib时,它不起作用。我收到此错误:

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

我尝试使用“ matplotlib.use(“ Agg”)“,但仍然出现相同的错误。 我尝试使用此命令在anacond中升级我的matlpotlib版本 pip install --upgrade matplotlib,我收到此错误。

Collecting matplotlib
  Using cached https://files.pythonhosted.org/packages/1a/c0/69e3f695d7384012e90be1e16570c08953baae00fd98094179ef87c7d5a2/matplotlib-3.1.1-cp37-cp37m-win_amd64.whl
Requirement already satisfied, skipping upgrade: numpy>=1.11 in c:\users\josh\conda\lib\site-packages (from matplotlib) (1.16.3)
Requirement already satisfied, skipping upgrade: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in c:\users\josh\conda\lib\site-packages (from matplotlib) (2.3.0)
Requirement already satisfied, skipping upgrade: python-dateutil>=2.1 in c:\users\josh\conda\lib\site-packages (from matplotlib) (2.7.5)
Requirement already satisfied, skipping upgrade: cycler>=0.10 in c:\users\josh\conda\lib\site-packages (from matplotlib) (0.10.0)
Requirement already satisfied, skipping upgrade: kiwisolver>=1.0.1 in c:\user\josh\conda\lib\site-packages (from matplotlib) (1.0.1)
Requirement already satisfied, skipping upgrade: six>=1.5 in c:\users\josh\conda\lib\site-packages (from python-dateutil>=2.1->matplotlib) (1.12.0)
Requirement already satisfied, skipping upgrade: setuptools in c:\users\josh\conda\lib\site-packages (from kiwisolver>=1.0.1->matplotlib) (40.6.3)
chances 0.1.6 has requirement matplotlib==2.2.3, but you'll have matplotlib 3.1.1 which is incompatible.
Installing collected packages: matplotlib
Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'C:\\Users\\josh\\conda\\Lib\\site-packages\\matplotlib\\ft2font.cp37-win_amd64.pyd'
Consider using the `--user` option or check the permissions.

有人可以指导我吗? 我不知道该怎么办。谢谢。

0 个答案:

没有答案