I am attempting to install spacy and have tried a number of methods using pip
, conda
, and installing directing from git. However, I am running into the same error:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[26], line 3
1 import spacy
----> 3 nlp = spacy.load("en_core_web_sm")
AttributeError: module 'spacy' has no attribute 'load'
From reading various articles online like this one, I see that my error is likely due to a file called "spacy.py" that is causing a shadowing error. However, I can't find this file. I feel like this is likely an easy thing to find but have yet to find it :(
Using which python
in my dir shows me:
/Users/my_name/anaconda3/bin/python
Looking into my anaconda3/bin/python dir, I do see a Unix Executable file named "spacy" but renaming it has not fixed my error.