0
我想运行一个python脚本,并且出现以下错误;Python熊猫:缺少所需的依赖项['numpy']
import pandas as pd
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/__init__.py", line 18, in <module>
raise ImportError("Missing required dependencies {0}".format(missing_dependencies))
ImportError: Missing required dependencies ['numpy']
numpy和pandas都使用pip成功安装。我怎样才能解决这个问题?
据说缺少numpy依赖关系。你需要事先安装它 – user2682877
@ user2682877我安装了numpy,但它仍然给出了相同的错误。 – maffsojah
您是否为Python2或Python3安装numpy?如果你输入'numpy',会发生什么? –