开发者社区> 问答> 正文

python matplotlib 导入出错? 400 报错

python matplotlib 导入出错? 400 报错

Python 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib Traceback (most recent call last): File "<stdin>", line 1, in <module> File "matplotlib.py", line 4, in <module> import matplotlib.pyplot as plt ImportError: No module named pyplot >>> exit() root@VM-13-111-ubuntu:/home/ubuntu# apt-get install python-matplotlib Reading package lists... Done Building dependency tree
Reading state information... Done python-matplotlib is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 187 not upgraded

为什么会这样呢!!!   我是缺少什么吗 !





展开
收起
爱吃鱼的程序员 2020-05-30 20:53:15 364 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    你试试用pip 然后装个pylab ######pylab 是图形化支持库。######py-lab ? 能否具体一点吗 谢谢######是因为你自己建了一个matplotlib.py文件给错误的import了吧

    2020-05-30 20:53:18
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
From Python Scikit-Learn to Sc 立即下载
Data Pre-Processing in Python: 立即下载
双剑合璧-Python和大数据计算平台的结合 立即下载