You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start with a vanilla Windows 10 machine that doesn't have the Microsoft Visual C++ Redistributable installed, and in particular doesn't have msvcp140.dll in C:\Windows\system32.
(Yeah, this already feels unpleasant, I know, sorry.)
Install a 64-bit Python from python.org, and with that in path, in cmd.exe
(venv) C:\Users\gbr\Desktop\foo>python -c "import spacy"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\gbr\Desktop\foo\venv\lib\site-packages\spacy\__init__.py", line 12, in <module>
from . import pipeline
File "C:\Users\gbr\Desktop\foo\venv\lib\site-packages\spacy\pipeline\__init__.py", line 4, in <module>
from .pipes import Tagger, DependencyParser, EntityRecognizer, EntityLinker
File "pipes.pyx", line 1, in init spacy.pipeline.pipes
ImportError: DLL load failed: The specified module could not be found.
The reason appears to be that lots of Spacy's .pyd files (DLLs) depend on msvcp140.dll, which (unlike vcruntime140.dll) is not shipped with Python and not present in Windows by default.
Spacy could bundle this DLL, like I notice scipy is doing, see MacPython/scipy-wheels#13 ... or, failing that, it could document that anyone deploying an app on Windows with spacy bundled inside (I'm doing that using pyinstaller) will need to arrange for msvcp140.dll to be installed as well.
Your Environment
Operating System: Windows 10
Python Version Used: 3.7.7
spaCy Version Used: 2.2.4
Environment Information:
The text was updated successfully, but these errors were encountered:
How to reproduce the problem
Start with a vanilla Windows 10 machine that doesn't have the Microsoft Visual C++ Redistributable installed, and in particular doesn't have
msvcp140.dll
inC:\Windows\system32
.(Yeah, this already feels unpleasant, I know, sorry.)
Install a 64-bit Python from python.org, and with that in path, in
cmd.exe
This fails:
The reason appears to be that lots of Spacy's
.pyd
files (DLLs) depend onmsvcp140.dll
, which (unlikevcruntime140.dll
) is not shipped with Python and not present in Windows by default.Spacy could bundle this DLL, like I notice scipy is doing, see MacPython/scipy-wheels#13 ... or, failing that, it could document that anyone deploying an app on Windows with spacy bundled inside (I'm doing that using pyinstaller) will need to arrange for msvcp140.dll to be installed as well.
Your Environment
The text was updated successfully, but these errors were encountered: