我 运行 pip install pokitdok 时出现错误?

i am getting error while i run pip install pokitdok?

当我 运行 >pip 安装 pokitdok 我得到以下错误 运行 >pip install pokitdok 我必须做哪些更改

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'

您需要以 root 用户身份安装,因此请使用 sudo:

sudo pip install pokitdok

一般来说,只有在绝对必要时才想提升权限 (sudo)。一个好的替代方法是使用 Python virtualenv,如 this question.

中所述

当然,如果你只是在修修补补,那可能没什么大不了的。