I think I was using Prodigy before without problems, but I recently received a new version, which I downloaded, and then wanted to upgrade. But I am getting this error:
[~/Desktop/Prodigy]$ ls
PRODIGY_LICENSE.pdf
prodigy-1.10.6-cp36.cp37.cp38-cp36m.cp37m.cp38-linux_x86_64.whl
prodigy-1.10.6-cp36.cp37.cp38-cp36m.cp37m.cp38-macosx_10_14_x86_64.whl
prodigy-1.10.6-cp36.cp37.cp38-cp36m.cp37m.cp38-win_amd64.whl
prodigy-1.10.8-cp36.cp37.cp38-cp36m.cp37m.cp38-linux_x86_64.whl
prodigy-1.10.8-cp36.cp37.cp38-cp36m.cp37m.cp38-macosx_10_14_x86_64.whl
prodigy-1.10.8-cp36.cp37.cp38-cp36m.cp37m.cp38-win_amd64.whl
[~/Desktop/Prodigy]$ pip install ./prodigy*.whl
Traceback (most recent call last):
File "/usr/local/bin/pip", line 7, in <module>
from pip import main
ImportError: cannot import name main
[~/Desktop/Prodigy]$ pip install ./prodigy-1.10.8-cp36.cp37.cp38-cp36m.cp37m.cp38-macosx_10_14_x86_64.whl
Traceback (most recent call last):
File "/usr/local/bin/pip", line 7, in <module>
from pip import main
ImportError: cannot import name main
[~/Desktop/Prodigy]$
Could anyone help with this? How do I upgrade my version of prodigy? Actually when I type 'prodigy' into my terminal, I see that the command is not found at all, so now I'm truly stumped...
I note, also, that I'm on a Mac, and when I type python --version I get Python 2.7.12 output. I think Prodigy needs v3.6 and above, so I'm a little stumped as to how to get my Mac to be on Python 3+.
Hi! From your error message, it looks like the problem starts even sooner: for some reason, your pip seems to be broken and won't even run pip install. So it doesn't even get to installing anything.
Yes, Prodigy requires Python 3 and it's definitely a good idea to upgrade, because Python 2 reached end of life on January 1, 2020 and many packages and tools are dropping support for it and focus on Python 3. So if you're on Python 2, you won't be able to run many packages in the ML and data science ecosystem.
Many Macs still ship with Python 2.7 as the default system installation, so that's likely how you ended up with it. You can either install Python 3.8 using the Mac installer, or use a tool like pyenv that lets you manage multiple Python versions locally.
Btw, once you've upgraded Python, I'd recommend using virtual environments for your projects to avoid installing packages into the system Python installation, which can easily cause problems and incompatibilities.
Thank you so much for this expmalation. Makes sense. I'll figure this stuff out. I had it working before! Not sure what changed with my system in the meantime, but I'll figure it out.