我是Python世界的新手。我必须运行一个在python代码中使用matplotlib的代码。我在Windows中使用Python 3.4(32位)。我使用PyDev进行开发并运行python脚本。我通过ImportError:Windows中没有名为'numpy'的模块
pip install matplotlib
安装matplotlib当我试图再次运行该代码,它要求“numpy的”
Traceback (most recent call last):
File "D:\workspace\KMS\readpsds.py", line 14, in <module>
import matplotlib.pyplot as plt
File "C:\Python34\lib\site-packages\matplotlib\__init__.py", line 179, in <module>
from matplotlib.cbook import is_string_like
File "C:\Python34\lib\site-packages\matplotlib\cbook.py", line 32, in <module>
import numpy as np
ImportError: No module named 'numpy'
当我试图通过
pip install numpy
安装numpy的它显示了以下命令行中的错误
Command C:\Python34\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\Rsh\\AppData\\Local\\Temp\\pip_build_Rsh\\numpy\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\Rsh\AppData\Local\Temp\pip-t3a6a8l1-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in C:\Users\Rsh\AppData\Local\Temp\pip_build_Rsh\numpyStoring debug log for failure in C:\Users\Rsh\pip\pip.log
请帮我解决这个问题。由于
[使用这些Windows二进制文件](http://www.lfd.uci.edu/~gohlke/pythonlibs/)在Windows上安装numpy和matplotlib,而不是使用pip,这很容易。 – Ffisegydd 2014-09-10 08:57:55
谢谢:)它像一个魅力工作! – sagittarius 2014-09-10 09:03:48