1

when i run >pip install pokitdok I got below error to run >pip install pokitdok what changes i have to do

Exception:
      Traceback (most recent call last):
        File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/basecommand.py", line 232, in main
          status = self.run(options, args)
        File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/commands/install.py", line 347, in run
          root=options.root_path,
        File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/req/req_set.py", line 543, in install
          requirement.uninstall(auto_confirm=True)
        File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/req/req_install.py", line 667, in uninstall
          paths_to_remove.remove(auto_confirm)
        File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/req/req_uninstall.py", line 126, in remove
          renames(path, new_path)
        File "/usr/local/lib/python2.7/dist-packages/pip-6.0.8-py2.7.egg/pip/utils/__init__.py", line 316, in renames
          shutil.move(old, new)
        File "/usr/lib/python2.7/shutil.py", line 300, in move
          rmtree(src)
        File "/usr/lib/python2.7/shutil.py", line 252, in rmtree
          onerror(os.remove, fullname, sys.exc_info())
        File "/usr/lib/python2.7/shutil.py", line 250, in rmtree
          os.remove(fullname)
      OSError: [Errno 13] Permission denied: '/usr/lib/python2.7/dist-packages/oauthlib/__init__.py'
ram
  • 73
  • 1
  • 7

2 Answers2

1

You need to install it as root user, so use sudo:

sudo pip install pokitdok
Mazdak
  • 105,000
  • 18
  • 159
  • 188
  • @ramnathreddy you're welcome! you can tell this to community by voting and accepting the answer! ;) – Mazdak Mar 11 '15 at 12:47
1

As a general rule, you only want to elevate privileges(sudo) if you absolutely have to. One good alternative is to use a Python virtualenv, as described in this this question.

Of course, if you're just tinkering, it's probably not a big deal.

Community
  • 1
  • 1
riney
  • 404
  • 5
  • 12