Ok so following your advice I did the following: In the past, we've seen some issues where Jupyter didn't start in the correct environment, or was using system-wide installs instead of env-specific, which makes everything even more confusing. It could also be a good idea to double check your system in a Python console/IDE first, before moving to Jupyter. If you can, it would be worthwhile to start again from a fresh new virtual environment to avoid any conflicts. line to pull in the correct spacy version for you? Do you actually need this line? I would expect the pip install prodigy. It looks like your conda install statement will pull in spaCy v3, which won't work. Long story short, to use Prodigy 1.10, you need to make sure that you have spaCy 2.x installed on your system, and Thinc 7.x. However, these are not compatible with Prodigy 1.10. The fact that thinc.api can't be imported indicates that some code is trying to use functionality from Thinc v8, which is compatible with spaCy v3. Hi! Not stupid at all, managing virtual environments and various installation setups can sometimes be a headache ImportError: cannot import name 'get_array_module' from 'thinc.api' (C:\Users\Giovanni\AppData\Roaming\Python\Python38\site-packages\thinc\api.py)Īre there any steps I am missing? Any help would be very appreciated, thanks! test.jsonl -label TEST I end up with this error message: However, when I run !python -m prodigy stats -l or !python -m prodigy ner.manual test_dataset blank:en. In a Jupyter notebook then I can succesfully import prodigy and call prodigy.get_config(). Pip install prodigy-1.10.37m.cp38-win_amd64.w hl -user -force-reinstallĬonda install -n gio_prodigy_new -c conda-forge spacy I've created a new environment in Anaconda, then I moved to jupyter terminal where I ran the following: This might sound really stupid, I am trying to re-install prodigy from scratch in a new clean environment (I have messed up the previous prodigy environment which was more or less working), but I keep receiving error messages right after the installation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |