3

I'm trying to install spacy and I keep getting this import error.

     File "<stdin>", line 1, in <module>
  File "E:\Users\Hebert\AppData\Local\Programs\Python\Python38\lib\site-packages\spacy\__init__.py", line 12, in <module>
    from . import pipeline
  File "E:\Users\Hebert\AppData\Local\Programs\Python\Python38\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 while importing nn_parser:

Does anyone have any idea what might be causing this? Thanks in advance.

Hebert AG
  • 91
  • 5
  • Possiblely relevant: https://stackoverflow.com/questions/42863505/dll-load-failed-when-importing-pyqt5 – Brian Mar 17 '20 at 17:39
  • @Brian I have installed PyQt5 to see if I would get the same error, and I had no problem importing it. I don't think it's the same issue. – Hebert AG Mar 17 '20 at 18:01
  • 2
    Could you paste more of the console: the original install command & output etc ? – Sofie VL Mar 18 '20 at 08:28
  • Thanks @SofieVL, I already have found a solution. The problem was the Visual Studio Build Tools. – Hebert AG Mar 18 '20 at 17:26

1 Answers1

1

I have fixed the issue by installing Visual Studio build tools. I thought I had it installed but I only had Visual Studio.

Hebert AG
  • 91
  • 5