2016-12-07 175 views
0

我無法使用pip install biom格式在我的macbook pro上安裝biom格式。這是我得到的錯誤在macbook pro上使用pip安裝biom格式的錯誤

Nawaz$ pip install numpy 
Requirement already satisfied: numpy in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python 
Nawaz$ pip install biom-format 
Collecting biom-format 
    Using cached biom-format-2.1.5.tar.gz 
Requirement already satisfied: click in /Library/Python/2.7/site-packages (from biom-format) 
Requirement already satisfied: numpy>=1.3.0 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from biom-format) 
Requirement already satisfied: future>=0.14.3 in /Library/Python/2.7/site-packages (from biom-format) 
Collecting scipy>=0.13.0 (from biom-format) 
    Using cached scipy-0.18.1-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl 
Collecting pyqi (from biom-format) 
Installing collected packages: scipy, pyqi, biom-format 
    Found existing installation: scipy 0.13.0b1 
    DEPRECATION: Uninstalling a distutils installed project (scipy) 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 scipy-0.13.0b1: 
Exception: 
Traceback (most recent call last): 
    File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main 
    status = self.run(options, args) 
    File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run 
    prefix=options.prefix_path, 
    File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 778, in install 
    requirement.uninstall(auto_confirm=True) 
    File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 754, in uninstall 
    paths_to_remove.remove(auto_confirm) 
    File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_uninstall.py", line 115, in remove 
    renames(path, new_path) 
    File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py", line 267, 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: '/var/folders/jv/nt6x1lw17z35xqzr5y64f89w0000gn/T/pip-5V1mGE-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy-0.13.0b1-py2.7.egg-info' 

請幫我解決錯誤。

+1

你用'sudo'? –

+0

或更好的檢查virtualenvironment包[virtualenv](https://virtualenv.pypa.io/en/stable/) – metmirr

+0

你也可以使用pip3 freeze來查看它是否實際上確實安裝了 – WhatsThePoint

回答