OSError: [WinError 126] 找不到指定的模块。 Error loading “D:\Python\Anaconda3\lib\site-packages\torch\lib\asm

安装python -m spacy download xx_ent_wiki_sm

报错OSError: [WinError 126] 找不到指定的模块。 Error loading "D:\Python\Anaconda3\lib\site-packages\torch\lib\asmjit.dll" or one of its dependencies.

在https://aka.ms/vs/16/release/vc_redist.x64.exe下载C++进行安装后

出现新的错误    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /explosion/spacy-models/master/compatibility.json (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 11004] getaddrinfo failed',))

链接vp-n后报错

ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /explosion/spacy-models/releases/download/xx_ent_wiki_sm-3.2.0/xx_ent_wiki_sm-3.2.0-py3-none-any.whl (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:777)'),))

无法解决

最终解决办法是下载tar.gz包,直接安装

安装方法:

https://www.jb51.net/article/178812.htmhttps://www.jb51.net/article/178812.htmtar文件中的setup安装

(把包放在tar.gz文件夹下面,然后解压文件到当前文件夹,在目录中输入%comspec%进入cmd,再输入python.exe setup.py install即安装成功)

附xx_ent_wiki_sm下载地址:

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

附下载轮子的网站:

Releases · explosion/spacy-models · GitHubhttps://github.com/explosion/spacy-models/releases/

你可能感兴趣的:(python,python,开发语言,后端)