在macbook pro上使用pip install biom-format时出错

时间:2016-12-07 12:48:16

标签: python python-2.7 numpy biom

我无法在我的macbook pro上使用pip install biom-format安装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 个答案:

答案 0 :(得分:0)

如果您想全局安装,请尝试使用sudo。

如果你只想在孤立的环境中使用virtualenv。

https://virtualenv.pypa.io/en/stable/userguide/#usage

希望这可以解决您的问题