我是Python世界的新手。我需要在Python代码中运行使用matplotlib的代码。我正在使用Windows系统下的Python 3.4(32位)版本。我使用PyDev进行开发并运行Python脚本。我通过以下方式安装了matplotlib:
pip install 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'
When I try to install numpy by
pip install 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
请帮我解决这个问题。谢谢。