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',會發生什麼? –