简体   繁体   English

由于El Capitan无法安装此Python模块(IMDbPY)? (不赞成使用?)

[英]Can't install this Python module (IMDbPY) because of El Capitan? (Deprecation?)

So I'm trying to install IMDbPY with pip, but I'm getting the following warning in yellow font, followed by a bunch of warnings in red. 因此,我尝试使用pip安装IMDbPY ,但是我收到以下黄色字体警告,然后是一堆红色警告。

I've tried several commands to solve this and without luck. 我已经尝试了几个命令来解决这个问题,但是没有运气。 I've search for the warning in yellow (that starts with DEPRECATION) and have found a thread on Github detailing some changes with OS X El-Capitan and how the "six" package is affected, and I managed to install it independently, but it seems like IMDbPY still wants to uninstall for some reason? 我搜索了黄色的警告(以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'

Any help appreciated! 任何帮助表示赞赏!

From anyone who is still interested on this, you can install it from source without any errors. 从仍然对此感兴趣的任何人,您都可以从源代码进行安装,而不会出现任何错误。

Pip or easy_install didn't work for me either on El Capitan (at least when I installed it) . Pip或easy_install在El Capitan上都不起作用(至少在安装时)

You can get the latest zip package on http://imdbpy.sourceforge.net/downloads.html#source-code . 您可以在http://imdbpy.sourceforge.net/downloads.html#source-code上获取最新的zip软件包。

I hope I helped. 希望我能帮上忙。

If you use 如果您使用

pip install --user imdbpy

it will work. 它会工作。 Did for me anyway. 反正为我做了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM