簡體   English   中英

點安裝Numpy錯誤

[英]Pip install Numpy Errors

我試圖將熊貓從19.2升級到20.2

我做了pip -install --upgrade pandas ,它成功運行了。 但是,現在當我嘗試import pandas我得到:

    "Missing required dependencies {0}".format(missing_dependencies))
ImportError: Missing required dependencies ['numpy']

我通過pip uninstall numpy卸載並重新安裝numpy並pip uninstall numpypip install numpy 但似乎numpy使用的是現金版本。 我前一段時間確實安裝了numpy MKL ....

C:\Windows\System32>pip install numpy
Collecting numpy
  Using cached numpy-1.13.0-cp36-none-win32.whl
Installing collected packages: numpy
Successfully installed numpy-1.13.0

如何安裝numpy的“普通”版本? 我相信此緩存版本導致了問題

轉到此鏈接並下載相關的numpy .whl文件:

http://www.lfd.uci.edu/~gohlke/pythonlibs/

然后導航至下載文件的目錄,並對該文件運行pip install命令。

希望這可以幫助!

您使用水蟒嗎? 嘗試在cmd中運行此腳本:

"conda install numpy"

另一個解決方案可能是刪除您的python項目創建的.pyc文件。 Python解釋器將源代碼編譯為字節代碼,該代碼存儲在.pyc中,而字節代碼是由Python虛擬機執行的戰后工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM