0

我正在尝试安装 django-taggit,但我收到了这个回溯错误:

Exception:
Traceback (most recent call last):
  File "/home/filipefr2/lib/python2.7/pip-1.5-py2.7.egg/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/home/filipefr2/lib/python2.7/pip-1.5-py2.7.egg/pip/commands/install.py", line 275, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/home/filipefr2/lib/python2.7/pip-1.5-py2.7.egg/pip/req.py", line 1371, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/home/filipefr2/lib/python2.7/pip-1.5-py2.7.egg/pip/req.py", line 655, in install
    self.move_wheel_files(self.source_dir, root=root)
  File "/home/filipefr2/lib/python2.7/pip-1.5-py2.7.egg/pip/req.py", line 885, in move_wheel_files
    pycompile=self.pycompile,
  File "/home/filipefr2/lib/python2.7/pip-1.5-py2.7.egg/pip/wheel.py", line 209, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/home/filipefr2/lib/python2.7/pip-1.5-py2.7.egg/pip/wheel.py", line 196, in clobber
    os.makedirs(destsubdir)
  File "/usr/local/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/site-packages/tests'

Storing debug log for failure in /home/filipefr2/.pip/pip.log

我已经尝试使用以下方法更新 setuptools:

easy_install-2.7 -U setuptools
4

1 回答 1

2

您没有安装软件包所需的权限(尤其是创建该目录)。

使用 root 或(更好)尝试virtualenv

于 2014-02-19T22:50:06.543 回答