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:
- uninstall existing packages
sudo pip uninstall oauth oauth2 pytumblr
- reinstall
sudo pip install oauth oauth2 pytumblr
also, check python version correlates pip using. can use python --version
, pip --version
check.
Comments
Post a Comment