簡體   English   中英

導入 Python 庫

[英]Importing Python Libraries

我正在使用 python39 並導入了庫 'numpy、scipy、matplotlib、scikit-learn 和 sklearn。 然后我嘗試將命令與 sklearn 庫一起使用,但它無法處理以下錯誤

from sklearn import neighbors
Traceback (most recent call last):
  File "<pyshell#32>", line 1, in <module>
    from sklearn import neighbors
  File "C:\Python39\lib\site-packages\sklearn\__init__.py", line 80, in <module>
    from .base import clone
ImportError: DLL load failed while importing qhull: The specified module could not be found."

我使用了以下命令

C:\Python39\Scripts>pip install mkl_fft-1.2.0-cp39-cp39-win_amd64.whl 強制

C:\Python39\Scripts>pip install mkl_random-1.2.0-cp39-cp39-win_amd64.whl force

C:\Python39\Scripts>pip install mkl_random-1.2.0-cp39-cp39-win_amd64.whl force

然后我回到我的 python shell 並輸入

從 sklearn 導入鄰居

有效

暫無
暫無

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

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