Python中文
首页
教程
问答
标签
搜索
登录
注册
ImportError:没有模块名“matplotlib”Python 3.3
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我是python新手(2天前开始),我已经到了想在程序中使用matplotlib的地步。我使用的是Python3.3,在按照安装matplotlib的说明操作之后,我已经完成了以下步骤:</p> <pre><code>sudo apt-get install python-pip sudo pip install matplotlib </code></pre> <p>返回此导入错误的:</p> <pre><code>ImportError: No module named 'matplotlib' </code></pre> <p>所以在做了一些研究之后,我试着说:</p> <pre><code>sudo apt-get update sudo apt-get build-dep python-matplot </code></pre> <p>我仍然收到同样的导入错误。我在这里找到了这一页:<a href="https://askubuntu.com/questions/427708/matplotlib-error-no-module-named-matplotlib-even-though-it-is-installed">https://askubuntu.com/questions/427708/matplotlib-error-no-module-named-matplotlib-even-though-it-is-installed</a></p> <p>这给我的印象是,我安装的matplotlib版本不正确,我需要v1.2或更高版本。有人能给我解释一下我需要做些什么才能使用matplotlib,而不是在Python 3.3中得到这个错误吗?</p> <p>我正在使用Ubuntu 12.04。</p> <p>谢谢你。</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>在我的Mint 17上,我刚刚使用了Python 3.4(建议您从Python开始,除非您需要一些还不支持3.4的库):</p> <pre><code>sudo pip3 install matplotlib </code></pre> <p>然后测试安装:</p> <pre><code>python3 import matplotlib matplotlib.__version__ </code></pre> <p>应该给你1.4.0</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
无法使用Django/mongoengine连接到MongoDB(身份验证失败)
10 回答
无法使用Django\u mssql\u后端迁移到外部hos
8 回答
无法使用Django&Python3.4连接到MySql
1 回答
无法使用Django+nginx上载媒体文件
10 回答
无法使用Django1.6导入名称模式
8 回答
无法使用Django1.7和mongodb登录管理站点
2 回答
无法使用Djangoadmin创建项目,进程使用了错误的路径,因为我事先安装了错误的Python
10 回答
无法使用Djangockedi验证CBV中的字段
4 回答
无法使用Djangocketditor上载图像(错误400)
4 回答
无法使用Djangocron进行函数调用
8 回答
无法使用Djangofiler djang上载文件
6 回答
无法使用Djangokronos
4 回答
无法使用Djangomssql provid
9 回答
无法使用Djangomssql连接到带有Django 1.11的MS SQL Server 2016
3 回答
无法使用Djangomssq迁移Django数据库
5 回答
无法使用Djangonox创建用户
4 回答
无法使用Djangopyodb从Django查询SQL Server
4 回答
无法使用Djangopython3ldap连接到ldap
9 回答
无法使用Djangoredis连接到redis
7 回答
无法使用Django中的FK创建新表
3 回答