Can't import Spacy after clean install #8966
-
Unable to import spacy after apparently successful download with pip. I get the following error:
This is using Spyder 5.1.1, with Python 3.7.9 (64 bit), Windows 10. I have tried updating the various modules called out in the Spacy load, and used pip 'check' on all modules. Pip thinks everything is fine, but it won't import. Any hep would be appreciated; thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Sorry you're having trouble with this. Recently someone had the same error because their installs of Thinc and spaCy were mixed between conda and non-conda Python somehow, you can see that issue here: #8199. Just to see if it's an issue with your environment, could you try installing spaCy in vanilla Python without using Spyder/Anaconda? Based on the path in your error it looks like srsly is installed in your vanilla Python and not an Anaconda environment. It also might help to check in your srsly install and see what |
Beta Was this translation helpful? Give feedback.
-
That fixed the problem; thanks!
Turns out it was some obscure Spyder configuration that wasn't finding
the ujson module. As soon as I ran the code in native Python,
everything worked. I'm going to switch IDE to something else.
Doug
…------ Original Message ------
From: "polm" ***@***.***>
To: "explosion/spaCy" ***@***.***>
Cc: "diggymacd" ***@***.***>; "Author"
***@***.***>
Sent: 8/15/2021 4:42:55 AM
Subject: Re: [explosion/spaCy] Can't import Spacy after clean install
(#8966)
Sorry you're having trouble with this.
Recently someone had the same error because their installs of Thinc and
spaCy were mixed between conda and non-conda Python somehow, you can
see that issue here: #8199
<#8199>.
Just to see if it's an issue with your environment, could you try
installing spaCy in vanilla Python without using Spyder/Anaconda? Based
on the path in your error it looks like srsly is installed in your
vanilla Python and not an Anaconda environment.
It also might help to check in your srsly install and see what pyd
files you have there - you should have one for ujson, but it might not
be there is something went wrong with the install.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8966 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEOSTQOHSNRKWPFPTHWONGTT46R37ANCNFSM5CFL4BGA>.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>.
|
Beta Was this translation helpful? Give feedback.
Sorry you're having trouble with this.
Recently someone had the same error because their installs of Thinc and spaCy were mixed between conda and non-conda Python somehow, you can see that issue here: #8199.
Just to see if it's an issue with your environment, could you try installing spaCy in vanilla Python without using Spyder/Anaconda? Based on the path in your error it looks like srsly is installed in your vanilla Python and not an Anaconda environment.
It also might help to check in your srsly install and see what
pyd
files you have there - you should have one for ujson, but it might not be there is something went wrong with the install.