在Mac上安装Scipy失败

时间:2014-08-01 16:59:31

标签: python macos python-2.7 scipy

我试图在我的工作Mac(OSX Mavericks)上安装python软件包scipy。我有sudo权限并已安装macports,pip和homebrew,但无法将scipy导入python。尝试导入时出现以下错误:

  
    

import scipy

  
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    ImportError: No module named scipy

尝试sudo port install scipy时:

  

错误:未找到端口scipy

尝试sudo port install py27-scipy:

    Computing dependencies for py27-scipy
    Cleaning py27-scipy
    Updating database of binaries
    Scanning binaries for linking errors
    No broken files found.

但仍无法将scipy导入python。

使用sudo pip install scipy给我这个:

     Downloading/unpacking scipy
     Cannot fetch index base URL https://pypi.python.org/simple/
     Could not find any downloads that satisfy the requirement scipy
     Cleaning up...
     No distributions at all found for scipy
     Storing debug log for failure in /Users/philip/.pip/pip.log

所以我很茫然,不知道这是怎么回事。

1 个答案:

答案 0 :(得分:0)

您是否考虑过使用Anaconda来管理Mac下的python? Scipy包含在发行版中。这是最简单的&#39;推荐方式Scipy列出要在Mac上安装自己。

Anaconda Download Page