python - pytumblr ImportError: No module named pytumblr -


i receive error "importerror: no module name pytumblr" when trying run python script using tumblr's api.

i installed pytumblr using following:

sudo pip install pytumblr 

my script looks this:

import pytumblr client = pytumblr.tumblrrestclient( '<consumer_key>', '<consumer_secret>', '<oauth_token>', '<oauth_secret>', )  client.info() 

note: parameters in tumblrrestclient method filled out in script.

i'm new python , have never used api or installed module before. have hunch module not found because pytumblr not installed in proper directory script searches when making import call.

thanks help!

you try:

  1. uninstall existing packages sudo pip uninstall oauth oauth2 pytumblr
  2. reinstall sudo pip install oauth oauth2 pytumblr

also, check python version correlates pip using. can use python --version , pip --version check.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -