如何修复“缺少必需的依赖项['numpy']”错误?

时间:2017-07-06 07:04:59

标签: python numpy importerror

您好,我怎么能通过这个错误,我尝试卸载并重新安装pandas和Quandl但它仍然会出现相同的错误?

RESTART: C:/Users/Reece92/AppData/Local/Programs/Python/Python36/Machine learning sentdex IDLE.py  
Traceback (most recent call last):   

File "C:/Users/Reece92/AppData/Local/Programs/Python/Python36/Machine learning sentdex IDLE.py", line 1, in <module>     
    import pandas as pd
File "C:\Users\Reece92\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\__init__.py", line 19, in <module>
    "Missing required dependencies {0}".format(missing_dependencies)) 
ImportError: Missing required dependencies ['numpy']

1 个答案:

答案 0 :(得分:1)

在python世界中,你有一些叫做包的东西。您可以使用它来扩展python与库和东西。默认情况下,这些“额外”软件包都没有安装,您必须使用名为pip的命令来安装应用程序所需的所有需求。

在你的情况下:

pip install numpy