无法在"Running setup.py install for scipy"上安装冻结



当我运行时

sudo pip install -U scipy

它首先被下载,然后显示

Running setup.py install for scipy

但它在那里结冰了。我试着升级pip本身。工作不错。我的pip版本是1.5.4

我得到的唯一错误是不安全平台警告。完整的输出如下所示:

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

它出乎意料地花了很长时间,但几分钟后就完成了。所以问题解决了。

执行

sudo apt-get install python-scipy

对于蟒蛇2

sudo apt-get install python3-scipy

如果你不在乎版本。在RPI3 上几秒钟内安装

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

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

最新更新