ImportError: No module named pylab
2013-06-07 12:50
363 查看
I am new to Python and want to use its
http://eli.thegreenplace.net/2011/10/10/installing-python-2-7-on-ubuntu/ but when I do
I am getting this error
My Python version is
plotfunctionality to create graphs. I am using ubuntu 12.04. I followed the Python installation steps from
http://eli.thegreenplace.net/2011/10/10/installing-python-2-7-on-ubuntu/ but when I do
from pylab import *
I am getting this error
>>> from pylab import * Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named pylab
My Python version is
python 2.7. Can anybody tell me what I am missing here?
You'll need to install numpy, scipy and matplotlib to get pylab. In ubuntu you can install them with this command:sudo apt-get install python-numpy python-scipy python-matplotlib If you installed python from source you will need to install these packages through pip. Note that you may have to install other dependencies to do this, as well as install numpy before the other two. That said, I would recommend using the version of python in the repositories as I think it is up to date with the current version of python (2.7.3).
| |||||||
|
相关文章推荐
- I'm using Python 2.7.2 ImportError No module named bz2
- 步步学习Python 编程error篇:import package error:Import error: No module named mayavi
- The error in python :ImportError: No module named xxx
- ImportError:No module named
- django 错误之 ImportError: No module named **
- ImportError: No module named Crypto.Cipher
- import Error: No module named mock
- importError: No module named images 解决方案
- import skimage.io ImportError: No module named skimage.io
- in thread "main" ImportError: Cannot import site module and its dependencies: No module named site
- ImportError:No module named matplotlib.pyplot
- 4000 ubuntu caffe ssd 服务器上运行自带demo 错误:import error no module named caffe
- import Tkinter error, no module named tkinter: "Python may not be configured for Tk”
- Ubuntu: ImportError: No module named BeautifulSoup
- ImportError: No module named MySQLdb
- ImportError: No module named setuptools 解决方法
- Python ImportError: No module named Tkinter
- 解决importerror no module named mysqldb
- Python ImportError:No module named的问题
- Pyinstaller Python ImportError: No module named publisher