无法安装scipy - 冻结“运行setup.py install for scipy”

时间:2015-11-21 21:20:37

标签: python scipy pip

当我跑

sudo pip install -U scipy

首先下载,然后继续显示

Running setup.py install for scipy

但它冻结了。我尝试升级pip本身。工作得很好。我的点子版本是1.5.4

我得到的唯一错误是InsecurePlatforWarning。完整输出如下所示:

tom@tom-ThinkPad-Edge-E430:~$ sudo pip install -U scipy
The directory '/home/tom/.cache/pip/http' or its parent directory
is not owned by the current user and the cache has been disabled.
Please check the permissions and owner of that directory. If
executing pip with sudo, you may want sudo's -H flag.
The directory '/home/tom/.cache/pip' or its parent directory is not
owned by the current user and caching wheels has been disabled.
check the permissions and owner of that directory. If executing pip with
sudo, you may want sudo's -H flag.
Collecting scipy
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90:
InsecurePlatformWarning: A true SSLContext object is not available.
This prevents urllib3 from configuring SSL appropriately and
may cause certain SSL connections to fail. For more information, see
https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading scipy-0.16.1.tar.gz (12.2MB)
   100% |████████████████████████████████| 12.2MB 32kB/s 
Installing collected packages: scipy
   Running setup.py install for scipy

3 个答案:

答案 0 :(得分:51)

花了很长时间,但几分钟后就结束了。所以问题就解决了。

答案 1 :(得分:0)

sudo apt-get install python-scipy

对于python2

sudo apt-get install python3-scipy

如果您不关心版本。在几秒钟内在RPI3上安装

答案 2 :(得分:0)

将交换大小从 100M 增加到 1024M 解决了具有 1G RAM 的 Raspberry Pi 3 上的问题。仍然花了很长时间(约 1 小时)但不再冻结。

(在 https://github.com/scipy/scipy/issues/9434 上发现此提示)

相关问题