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

Tom*_*83B 20 python pip scipy

我跑的时候

sudo pip install -U scipy
Run Code Online (Sandbox Code Playgroud)

它首先被下载然后继续显示

Running setup.py install for scipy
Run Code Online (Sandbox Code Playgroud)

但它冻结在那里.我尝试升级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
Run Code Online (Sandbox Code Playgroud)

Tom*_*83B 57

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

  • 这可能是我投过的最简单的答案.但是看看`top`显示cc1plus的CPU利用率为100%,所以我认为编译工作很难. (9认同)
  • 在我读完你的答案后,安装完毕. (4认同)
  • 同样在这里 - 安装大约需要 4-5 分钟。 (2认同)
  • 在我的 Raspberry Pi 上运行了一个多小时,CPU 利用率为 5%,所以这实际上可能是一个错误。 (2认同)