0

所以我正在尝试使用 pip 安装IMDbPY,但我收到以下黄色字体警告,然后是一堆红色警告。

我已经尝试了几个命令来解决这个问题,但没有运气。我搜索了黄色警告(以 DEPRECATION 开头)并在 Github 上找到了一个线程,详细说明了 OS X El-Capitan 的一些更改以及“六”包如何受到影响,我设法独立安装了它,但是似乎 IMDbPY 出于某种原因仍想卸载?

Installing collected packages: six, sqlparse, decorator, Tempita, sqlalchemy-migrate, IMDbPY
  Found existing installation: six 1.4.1
    DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
    Uninstalling six-1.4.1:
Exception:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 211, in main
    status = self.run(options, args)
  File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 311, in run
    root=options.root_path,
  File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 640, in install
    requirement.uninstall(auto_confirm=True)
  File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 716, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/Library/Python/2.7/site-packages/pip/req/req_uninstall.py", line 125, in remove
    renames(path, new_path)
  File "/Library/Python/2.7/site-packages/pip/utils/__init__.py", line 315, in renames
    shutil.move(old, new)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
    copy2(src, real_dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2
    copystat(src, dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat
    os.chflags(dst, st.st_flags)
OSError: [Errno 1] Operation not permitted: '/tmp/pip-QNP1Pr-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'

任何帮助表示赞赏!

4

2 回答 2

0

如果你使用

pip install --user imdbpy

它会起作用的。反正为我做了。

于 2016-11-26T04:46:45.840 回答
0

对于仍然对此感兴趣的任何人,您都可以从源代码安装它而不会出现任何错误。

Pip 或 easy_install 在 El Capitan 上对我也不起作用(至少在我安装它时)

您可以在http://imdbpy.sourceforge.net/downloads.html#source-code上获取最新的 zip 包。

我希望我有所帮助。

于 2016-01-30T16:29:19.183 回答