qq_42204811
qq_42204811
2018-11-02 13:58
采纳率: 100%
浏览 3.0k

matplotlib模块有问题,重装了也没用?

错误提示
Traceback (most recent call last):
File "**", line 13, in
import matplotlib.pyplot as plt
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\matplotlib\pyplot.py", line 32, in
import matplotlib.colorbar
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\matplotlib\colorbar.py", line 28, in
import matplotlib.artist as martist
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\matplotlib\artist.py", line 11, in
from .path import Path
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\matplotlib\path.py", line 17, in
from . import _path, rcParams
ImportError: cannot import name '_path'

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • qq_42204811
    qq_42204811 2018-11-03 04:58
    已采纳

    找到了。。原来anaconda安装没激活TensorFlow,单纯的把包复制过去不行。。

    点赞 评论
  • weixin_39416561
    lyhsdy 2018-11-03 01:34

    重新下载一次试试
    pip uninstall matplotlib
    pip install matplotlib

    点赞 评论

相关推荐