Problems Installing Prodigy on Mac 10.12.6

I’m using anaconda and Python 2.7

I tried to install using pip unsuccessfully. Then I used get_platform and renamed the file to my platform name but still, it did not work.

Ultimately, I unzipped the file and tried the commands. I’m experiencing the errors below:

➜ /anaconda PYTHONPATH=‘pwd’ python -m prodigy
Traceback (most recent call last):
File “/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py”, line 163, in _run_module_as_main
mod_name, _Error)
File “/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py”, line 111, in _get_module_details
import(mod_name) # Do not catch exceptions initializing package
File “prodigy/init.py”, line 4, in
from . import recipes # noqa
File “prodigy/recipes/init.py”, line 4, in
from . import dep, ner, textcat, pos, compare, terms, generic, image # noqa
File “prodigy/recipes/dep.py”, line 7, in
from …models.dep import DependencyParser, merge_arcs
ImportError: No module named dep

What should I try now? :thinking:

Thanks in advance

Pretty sure this is the problem: Prodigy only supports Python 3.5+. This is likely also why you were having installation problems, and why Python can’t find the module: it’s looking for a compiled Python 2 file.

So installing Prodigy in a Python 3.5 or 3.6 environment should solve the problem. The good news is, even if all your other code is in Python 2 and you’re using spaCy in a Python 2 applications, all models you train with Prodigy will still be compatible (and vice versa).