2015-11-02 69 views
0

所以我试图用pip安装IMDbPY,但我在黄色字体中收到以下警告,后面跟着一串红色的警告。由于El Capitan,无法安装此Python模块(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' 

任何帮助表示赞赏!

+0

它需要六个不同的版本,我会创建一个[virtualenv](https://pypi.python.org/pypi/virtualenv)并在那里安装你需要的任何东西。 – hd1

+0

您是否尝试过使用sudo和pip? – Rishav

回答

0

如果使用

pip install --user imdbpy 

它会奏效。无论如何对我来说。