scipy在cygwin的安装
来源:互联网 发布:分贝计软件 编辑:程序博客网 时间:2024/06/06 00:22
折腾一天,总结一下:
下载lapack-3.7.1,拷贝install目录下的make.inc.gfortran.到上一级目录,改名make.inc
OPTS = -O2 -frecursive -m64 -fPIC
DRVOPTS = $(OPTS)
NOOPT = -O0 -frecursive -m64 -fPIC
加上m64,fPIC对于amd64没用,加上无妨
make
然后到CBLAS目录下make,生成libcblas.a
在scipy源代码目录site.cfg文件中加入
[cblas]
library_dirs = /home/wuzhiqiao/lapack-3.7.1/lapack-3.7.1
blas_libs = cblas
extra_compile_args =-m64
[blas]
library_dirs = /home/wuzhiqiao/lapack-3.7.1/lapack-3.7.1
blas_libs = blas
extra_compile_args =-m64
[lapack]
library_dirs = /home/wuzhiqiao/lapack-3.7.1/lapack-3.7.1
lapack_libs = lapack
extra_compile_args =-m64
再修改F:\cygwin64\lib\python2.7\site-packages\numpy\distutils\system_info.py文件
加入extra_preargs="-m64"
def has_cblas(self, info):
# primitive cblas check by looking for the header and trying to link
# cblas or blas
res = False
c = distutils.ccompiler.new_compiler()
c.customize('')
tmpdir = tempfile.mkdtemp()
s = """#include <cblas.h>
int main(int argc, const char *argv[])
{
double a[4] = {1,2,3,4};
double b[4] = {5,6,7,8};
return cblas_ddot(4, a, 1, b, 1) > 10;
}"""
src = os.path.join(tmpdir, 'source.c')
try:
with open(src, 'wt') as f:
f.write(s)
try:
# check we can compile (find headers)
obj = c.compile([src], output_dir=tmpdir,
include_dirs=self.get_include_dirs(), extra_preargs="-m64")
最后在scipy根目录下python setup.py install,这样可以不用编译MKL
- scipy在cygwin的安装
- CygWin在windows下的安装步骤
- gdb在cygwin下的安装
- gdb在cygwin下的安装
- gdb在cygwin下的安装
- 在ubuntu下安装python的numpy和scipy模块
- 在windows下python,pip,numpy,scipy,matplotlib的安装
- 在windows下python,pip,numpy,scipy,matplotlib的安装
- 在Windows系统上安装SciPy的一点经验
- 在cygwin安装Mysql
- Hadoop---在window下配置安装之cygwin的安装
- numpy和scipy的安装
- scipy numpy的下载安装
- Numpy he scipy 的安装
- windows下scipy的安装
- 关于scipy包的安装
- 安装scipy遇到的问题
- Python 在 windows 下安装scipy
- 【深搜+回溯+枚举】poj 755 Flip Game
- vue 使用axios 发送表单数据
- Markdown 使用笔记
- MyBites的使用,连接xml
- ubuntu apt-get update 失败解决。安装新的ubuntu时出现 mirror连接不上
- scipy在cygwin的安装
- 【python】常用文件读取
- mysql数据库基本操作(三)
- Windows修改java环境变量不生效
- fabirc1.0商业正式版本源码解析2——peer命令结构
- vue 组件 全局注册与局部注册的方法
- 九、 通用工具 ----辅助函数
- MySQL的简单应用
- Spring Cloud Feign实例讲解