无法升级 Scipy [英] Can't upgrade Scipy

查看:65
本文介绍了无法升级 Scipy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 Scipy0.9.0 升级到 0.12.0.我使用命令:

I'm trying to upgrade Scipy from 0.9.0 to 0.12.0. I use the command:

sudo pip install --upgrade scipy

而且我遇到了各种各样的错误,这些错误可以在在此处的 pip.log 文件中看到,但不幸的是我不熟悉 Python足以明白出了什么问题.任何帮助将不胜感激.

and I get all sorts of errors which can be seen in the pip.log file here and I'm unfortunately not python-savvy enough to understand what's wrong. Any help will be appreciated.

推荐答案

所有错误消息都说明了相同的情况:您的系统上缺少 BLAS(基本线性代数子例程),或者 scipy 找不到它.在 ubuntu 中从源代码安装包时,正如您正在有效地尝试使用 pip,确保依赖项到位的最简单方法之一是通过命令

The error messages all state the same: You lack BLAS (Basic Linear Algebra Subroutines) on your system, or scipy cannot find it. When installing packages from source in ubuntu, as you are effectively trying to do with pip, one of the easiest ways to make sure dependencies are in place is by the command

$ sudo apt-get build-dep python-scipy

这将安装构建包python-scipy所需的所有包.在某些情况下,您可能会遇到这样的问题,即您尝试安装的源包版本与 ubuntu 包含的版本具有不同的依赖关系,但在您的情况下,我认为上述命令足以获取的可能性很大BLAS 给你,包括标题.

which will install all packages needed to build the package python-scipy. You may in some cases run into the problem that the version of the source package you are trying to install have different dependencies than the version included with ubuntu, but in your case, I think chances are good that the above command will be sufficient to fetch BLAS for you, headers included.

这篇关于无法升级 Scipy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆