3

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

6
  • 1
    Which Python version are you using? Here's an issue 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? Commented May 15, 2017 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 Commented May 15, 2017 at 14:11
  • 1
    Tried conda install -c spacy spacy=0.101.0? Commented May 17, 2017 at 8: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. Commented May 17, 2017 at 8: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. Commented May 17, 2017 at 9:03

6 Answers 6

9

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
Sign up to request clarification or add additional context in comments.

Comments

2

!conda install -c spacy spacy=0.101.0 -y

!python -m spacy.en.download

Comments

1
! pip install SpaCy
! python -m spacy download en

This really worked !

Comments

0

To install spacy on jupyter notebook use pip install SpaCy

Comments

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

1 Comment

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.
0

To install spacy in jupyter notebook.

  1. Open cmd or anaconda prompt.
  2. run pip install spacy as the base user.
  3. it will now work in jupyter notebook but it may take some time to import the modules.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.