I have installed clarifai using 'pip install clarifai' and can use it in the command line, however, when I tried running quickstart.py. I got an import error said No module named clarifai.rest.
I am appreciated with every help. Thank you!
This screenshot just to show that I can run clarifai from the command line
hey, what python --version and pip --version shows ?
python --version => Python 2.7.12
pip --version => pip 9.0.1 from /home/billy/.local/lib/python2.7/site-packages (python 2.7)
pip install clarifai ; python quickstart.py
That's suppose to work. I installed clarifai already, but still getting the error. I save the screenshot of the problem below.
no idea..
I shouldn't say that, but a workaround is comment this line
from clarifai.rest import ClarifaiApp, Image as ClImage
from clarifai_util.py
The problem solved, I have multiple python versions and have not installed clarifai to python 2.7. In case any one found this issue,
-> run 'pip list' to see whether you have installed clarifai.
If not,
-> run 'sudo python -m pip install clarifai', so it will install to the right python version (2.7)
Did you managed to get rid of below error ? I tried all what ou have suggested above but still same error.
from clarifai.rest import ClarifaiApp
ImportError: No module named rest
I tried all above as well and still getting:
ImportError: No module named clarifai.rest
Did anyone solve this? Thanks.
this solved the problem for me:
sudo pip install clarifai==2.0.20
Most helpful comment
this solved the problem for me:
sudo pip install clarifai==2.0.20