2

I have installed Anaconda 3.x for 64 bit in a Windows 10 system. I have installed spacy by pip install -U spacy

WHen i run install spacy in Notebook i get an 'DLL Load' error like this

enter image description here

Chakra
  • 2,443
  • 8
  • 40
  • 78
  • 1
    Which Python version are you using? [Here's an issue](https://github.com/explosion/spaCy/issues/1027#issuecomment-300051392) describing the same problem and a potential solution – have you tried creating a conda environment and explicitly setting `python=3`, i.e. `conda create --name py36 python=3`? – Ines Montani May 15 '17 at 12:23
  • I tried that but it didn't work. I am still new to Python so maybe i am making some silly mistakes. I am able pip install spacy AFTER i installed VS express, as that link suggests, but i continue to get that import error.Thanks – Chakra May 15 '17 at 14:11
  • 1
    Tried `conda install -c spacy spacy=0.101.0`? – alvas May 17 '17 at 08:11
  • Yes i did. I managed to get PyCharm to work with Spacy, by setting the Interpreter to point to the conda environment. I need to find a way for Jupyter Notebook. – Chakra May 17 '17 at 08:59
  • @InesMontani I managed to set the conda environment, install spacy in it and get it work in Python command line as well as PyCharm. Notebook is my issue now. – Chakra May 17 '17 at 09:03
  • Thanks all. I managed to connect to the conda environment in Notebook as per this answer http://stackoverflow.com/questions/37433363/link-conda-environment-with-jupyter-notebook – Chakra May 17 '17 at 10:04

4 Answers4

7

You can install spacy and download en in the jupyter notebook as:

import sys
!{sys.executable} -m pip install spacy
!{sys.executable} -m spacy download en
Gaurav Kumar
  • 113
  • 1
  • 4
2

!conda install -c spacy spacy=0.101.0 -y

!python -m spacy.en.download

Community
  • 1
  • 1
0

To install spacy on jupyter notebook use pip install SpaCy

Ru Chern Chong
  • 3,424
  • 13
  • 31
  • 42
0
  1. Go to Anaconda Navigator -> at the environment, go to the base(root)-> open terminal
  2. type this command: conda install -c conda-forge spacy

Spacy configuration in Anaconda

Spacy configuration in Anaconda

Spacy configuration at Terminal

mimoseng
  • 61
  • 1
  • 1
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Oct 21 '21 at 03:07