91在线一级黄片|91视频在线观看18|成人夜间呦呦网站|91资源欧美日韩超碰|久久最新免费精品视频一区二区三区|国产探花视频在线观看|黄片真人免费三级片毛片|国产人无码视频在线|精品成人影视无码三区|久久视频爱久久免费精品

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
創(chuàng)新互聯(lián)Python教程:pythonsklearn找不到指定模塊

在 import sklearn.manifold時(shí)出現(xiàn) ImportError: DLL load failed:找不到指定的模塊,具體如下:

專注于為中小企業(yè)提供成都網(wǎng)站建設(shè)、網(wǎng)站制作服務(wù),電腦端+手機(jī)端+微信端的三站合一,更高效的管理,為中小企業(yè)奉賢免費(fèi)做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動(dòng)了1000+企業(yè)的穩(wěn)健成長(zhǎng),幫助中小企業(yè)通過網(wǎng)站建設(shè)實(shí)現(xiàn)規(guī)模擴(kuò)充和轉(zhuǎn)變。

Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Users\user\AppData\Local\Programs\python\Python36\lib\site-packages\sklearn\manifold\__init__.py", line 5, in 
    from .locally_linear import locally_linear_embedding, LocallyLinearEmbedding
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\manifold\locally_linear.py", line 17, in 
    from ..neighbors import NearestNeighbors
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\neighbors\__init__.py", line 9, in 
    from .graph import kneighbors_graph, radius_neighbors_graph
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\neighbors\graph.py", line 7, in 
    from .base import KNeighborsMixin, RadiusNeighborsMixin
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\neighbors\base.py", line 18, in 
    from ..metrics import pairwise_distances
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\metrics\__init__.py", line 35, in 
    from . import cluster
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\metrics\cluster\__init__.py", line 20, in 
    from .unsupervised import silhouette_samples
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\metrics\cluster\unsupervised.py", line 12, in 
    from ..pairwise import pairwise_distances
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\metrics\pairwise.py", line 30, in 
    from .pairwise_fast import _chi2_kernel_fast, _sparse_manhattan
ImportError: DLL load failed: 找不到指定的模塊。

解決方法:

在保證scipy和numpy成功安裝的條件下,并且安裝了pip后使用命令 pip install -U scikit-learn 更新一下即可。

若遇到如下問題:

Exception:
Traceback (most recent call last):
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\shutil.py", line 387, in _rmtree_unsafe
    os.unlink(fullname)
PermissionError: [WinError 5] 拒絕訪問。: 'C:\\Users\\user\\AppData\\Local\\Temp\\pip-njirl_1q-uninstall\\users\\user\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\sklearn\\feature_extraction\\_hashing.cp36-win_amd64.pyd'
 
During handling of the above exception, another exception occurred:
 
Traceback (most recent call last):
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\commands\install.py", line 342, in run
    prefix=options.prefix_path,
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\req\req_set.py", line 795, in install
    requirement.commit_uninstall()
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\req\req_install.py", line 767, in commit_uninstall
    self.uninstalled.commit()
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\req\req_uninstall.py", line 142, in commit
    rmtree(self.save_dir)
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\_vendor\retrying.py", line 49, in wrapped_f
    return Retrying(*dargs, **dkw).call(f, *args, **kw)
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\_vendor\retrying.py", line 212, in call
    raise attempt.get()
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\_vendor\retrying.py", line 247, in get
    six.reraise(self.value[0], self.value[1], self.value[2])
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\_vendor\six.py", line 686, in reraise
    raise value
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\_vendor\retrying.py", line 200, in call
    attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\utils\__init__.py", line 102, in rmtree
    οnerrοr=rmtree_errorhandler)
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\shutil.py", line 494, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\shutil.py", line 384, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\shutil.py", line 384, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\shutil.py", line 384, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  [Previous line repeated 7 more times]
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\shutil.py", line 389, in _rmtree_unsafe
    onerror(os.unlink, fullname, sys.exc_info())
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\utils\__init__.py", line 114, in rmtree_errorhandler
    func(path)
PermissionError: [WinError 5] 拒絕訪問。: 'C:\\Users\\user\\AppData\\Local\\Temp\\pip-njirl_1q-uninstall\\users\\user\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\sklearn\\feature_extraction\\_hashing.cp36-win_amd64.pyd'

使用 pip install --user package_name命令即可解決。


網(wǎng)頁名稱:創(chuàng)新互聯(lián)Python教程:pythonsklearn找不到指定模塊
文章地址:http://m.jiaoqi3.com/article/ccdidos.html