python : matplotlib does not work in Eclipse
2013-06-08 10:34
405 查看
I met a problem like this: [ http://stackoverflow.com/questions/6513753/matplotlib-does-not-work-in-eclipse import numpy
import matplotlib.pylab as pylab
import pylab as pl
I get the following error in Eclipse: import matplotlib import pylab as pl from matplotlib.pylab import * ImportError: No module named pylab
Even though the interpreter for Pydev is pointing to the appropriate version of python and matplotlib is installed properly in there (site-packages) it does not work in Eclipse.
]
My problem is:
my code: " import matplotlib.pyplot as plt ... " when to run the code, error in Eclipse:
import matplotlib.pyplot as plt
: No module named
pyplot.[/code]
However, switch to another IDE such as pyScript to run the code, it works well. I change to another workspace where its path have no spaces. eg.D:\EclipseWorkSpace create a python project and import the last "xxx.py" file. run again. it works well!!! problem fixed. It's a eclipse issue. (original workspace is: D:\Documents and Settings\xixiao\workspace)
相关文章推荐
- python 绘图添加图例显示UserWarning: Legend does not support [<matplotlib.lines.Line2D object at 0x07FA3210>]
- Python 添加图例出错:UserWarning: Legend does not support [<matplotlib.lines.Line2D object at 0x07FA3210>]
- 安装Python-Matplotlib时出现的问题--Python version 2.7 required, which was not found in the registry
- 安装Python-Matplotlib时出现的问题--Python version 2.7 required, which was not found in the registry
- "Insert spaces for tabs" does not work in Eclipse
- 【Python】ModuleNotFoundError: No module named 'matplotlib.pyplot'
- Python在Mac上运行matplotlib出错:RuntimeError: Python is not installed as a framework.解决办法
- eclipse+python+numpy+scipy+matplotlib
- python plot for matplotlib in pythonxy platform
- Mac使用 matplotlib 画图 => RuntimeError: Python is not installed as a framework
- Python绘图问题:Matplotlib中%matplotlib inline是什么、如何使用?
- Mac下安装eclipse+python+pydev+numpy+matplotlib
- Python绘图问题:Matplotlib中%matplotlib inline是什么、如何使用?
- python导入包失败ModuleNotFoundError: No module named 'matplotlib.pyplot'; 'matplotlib' is not a package
- python py2exe打包matplotlib Could not find the matplotlib data files问题解决
- mac os x python安装matplotlib 库 出错: Operation not permitted
- python matplotlib
- python学习笔记(matplotlib下载安装)
- Python 在Windows下安装matplotlib
- python绘图:matplotlib和pandas的应用