[英]Failed Installation of Scipy on Mac
I'm trying to install the python package scipy on my work Mac (OSX Mavericks). 我正在尝试在工作Mac(OSX Mavericks)上安装python软件包scipy。 I have sudo privileges and have installed macports, pip, and homebrew, but cannot import scipy into python.
我具有sudo特权,并已安装macports,pip和homebrew,但无法将scipy导入python。 I get the following error when trying to import it:
尝试导入时收到以下错误:
import scipy
导入密码
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named scipy
When trying to sudo port install scipy: 尝试sudo端口安装scipy时:
Error: Port scipy not found
错误:找不到端口Scipy
Trying sudo port install py27-scipy: 尝试sudo端口安装py27-scipy:
Computing dependencies for py27-scipy
Cleaning py27-scipy
Updating database of binaries
Scanning binaries for linking errors
No broken files found.
But still unable to import scipy into python. 但是仍然无法将scipy导入python。
Using sudo pip install scipy give me this: 使用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
So I am at a loss, not sure how this 所以我茫然不知所措
Have you considered using Anaconda to manage python under Mac? 您是否考虑过在Mac下使用Anaconda来管理python? Scipy is included in the distribution.
Scipy包含在发行版中。 This is the 'easiest' recommended way Scipy lists to install itself on Mac.
这是Scipy列出在Mac上安装自身的“最简单”的推荐方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.