python 2.7 - Getting an error of "No module named oauth2 " -


i trying run python tool authenticate me linkedin, in order me download linkedin network might able analyze inside of gephi. obtained such file here:

linkedin-1-oauth.py github

i cloned , 2 other files has in gist. did terminal doing git clone [url here] 3 of files. put api , secret keys in corresponding places.

i did pip install oauth2 , updated httplib2 suggested here:

pip install oauth2 , update httplib2

i did command line, downloaded , installed files in same directory downloaded linkedin files gist, in user folder.

when trying pip install oauth2 , following error message:

downloading/unpacking oauth2   running setup.py egg_info package oauth2  requirement satisfied (use --upgrade upgrade): httplib2 in /usr/lib/python2.7/dist-packages (from oauth2) installing collected packages: oauth2   running setup.py install oauth2     error: not create '/usr/local/lib/python2.7/dist-packages/oauth2': permission denied     complete output command /usr/bin/python -c "import setuptools;__file__='/home/steven/build/oauth2/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-e2rkcv-record/install-record.txt:     running install  running build  running build_py  running install_lib  creating /usr/local/lib/python2.7/dist-packages/oauth2  error: not create '/usr/local/lib/python2.7/dist-packages/oauth2': permission denied  ---------------------------------------- command /usr/bin/python -c "import setuptools;__file__='/home/steven/build/oauth2/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-e2rkcv-record/install-record.txt failed error code 1 storing complete log in /home/steven/.pip/pip.log 

i tried easy_install oauth2 , got following error message:

error: can't create or remove files in install directory  following error occurred while trying add or remove files in installation directory:      [errno 13] permission denied: '/usr/local/lib/python2.7/dist-packages/test-easy-install-4349.pth'  installation directory specified (via --install-dir, --prefix, or distutils default setting) was:      /usr/local/lib/python2.7/dist-packages/  perhaps account not have write access directory?  if installation directory system-owned directory, may need sign in administrator or "root" account.  if not have administrative access machine, may wish choose different installation directory, preferably 1 listed in pythonpath environment variable.  information on other options, may wish consult documentation at:    http://packages.python.org/distribute/easy_install.html  please make appropriate changes system , try again. 

so tried doing sudo apt-get install oauth2 , not found

i running ubuntu 12.04 lts did sudo update , upgrades before did else morning. running python 2.7

thank you

i able fix problem going here:

python-oauth2


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -