Instapy: ImportError: No module named clarifai.rest

Created on 20 Dec 2017  路  10Comments  路  Source: timgrossmann/InstaPy

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.

screen shot 2560-12-20 at 16 48 03

I am appreciated with every help. Thank you!

Most helpful comment

this solved the problem for me:

sudo pip install clarifai==2.0.20

All 10 comments

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.

untitled

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

tibor picture tibor  路  3Comments

ingorichter picture ingorichter  路  3Comments

Naramsim picture Naramsim  路  3Comments

n0sw34r picture n0sw34r  路  3Comments