suse11安装python_无法在suse 11.3中安装python scipy

我无法在suse11.3中安装scipy。在

我跟踪了这个链接中的文档:

我安装了:lapack

ATLAS

然后我git克隆scipy并运行python设置.py安装,我一直收到这些错误。我错过了什么步骤吗?在

^{pr2}$

从git安装时出错:/usr/local/lib64/python2.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]

#warning "Using deprecated NumPy API, disable it by " \

^

scipy/cluster/_vq.c: In function ‘__pyx_fuse_0__pyx_f_5scipy_7cluster_3_vq_cal_M’:

scipy/cluster/_vq.c:1538:3: warning: implicit declaration of function ‘sgemm_’ [-Wimplicit-function-declaration]

f_sgemm(__pyx_k_T, __pyx_k_N, (&__pyx_v_ncodes), (&__pyx_v_nobs), (&__pyx_v_nfeat), (&__pyx_v_alpha), __pyx_v_code_book, (&__pyx_v_nfeat), __pyx_v_obs, (&__pyx_v_nfeat), (&__pyx_v_beta), __pyx_v_M, (&__pyx_v_ncodes));

^

scipy/cluster/_vq.c: In function ‘__pyx_fuse_1__pyx_f_5scipy_7cluster_3_vq_cal_M’:

scipy/cluster/_vq.c:1575:3: warning: implicit declaration of function ‘dgemm_’ [-Wimplicit-function-declaration]

f_dgemm(__pyx_k_T, __pyx_k_N, (&__pyx_v_ncodes), (&__pyx_v_nobs), (&__pyx_v_nfeat), (&__pyx_v_alpha), __pyx_v_code_book, (&__pyx_v_nfeat), __pyx_v_obs, (&__pyx_v_nfeat), (&__pyx_v_beta), __pyx_v_M, (&__pyx_v_ncodes));

^

In file included from /usr/local/lib64/python2.6/site-packages/numpy/core/include/numpy/ufuncobject.h:317:0,

from scipy/cluster/_vq.c:243:

scipy/cluster/_vq.c: At top level:

/usr/local/lib64/python2.6/site-packages/numpy/core/include/numpy/__ufunc_api.h:241:1: warning: ‘_import_umath’ defined but not used [-Wunused-function]

_import_umath(void)

^

gcc -pthread -shared build/temp.linux-x86_64-2.6/scipy/cluster/_vq.o -L/usr/local/lib64 -L/usr/lib64 -Lbuild/temp.linux-x86_64-2.6 -llapack -lptf77blas -lptcblas -latlas -lpython2.6 -o build/lib.linux-x86_64-2.6/scipy/cluster/_vq.so

/usr/bin/ld: /usr/local/lib64/libptf77blas.a(sgemm.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC

/usr/local/lib64/libptf77blas.a: could not read symbols: Bad value

collect2: error: ld returned 1 exit status

/usr/bin/ld: /usr/local/lib64/libptf77blas.a(sgemm.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC

/usr/local/lib64/libptf77blas.a: could not read symbols: Bad value

collect2: error: ld returned 1 exit status

error: Command "gcc -pthread -shared build/temp.linux-x86_64-2.6/scipy/cluster/_vq.o -L/usr/local/lib64 -L/usr/lib64 -Lbuild/temp.linux-x86_64-2.6 -llapack -lptf77blas -lptcblas -latlas -lpython2.6 -o build/lib.linux-x86_64-2.6/scipy/cluster/_vq.so" failed with exit status 1

----------------------------------------

Cleaning up...

Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-5ylcSA-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-86Pqof-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-5ylcSA-build

Traceback (most recent call last):

File "/usr/local/bin/pip", line 8, in

load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()

File "/usr/local/lib64/python2.6/site-packages/pip-1.5.6-py2.6.egg/pip/__init__.py", line 185, in main

return command.main(cmd_args)

File "/usr/local/lib64/python2.6/site-packages/pip-1.5.6-py2.6.egg/pip/basecommand.py", line 161, in main

text = '\n'.join(complete_log)

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 51: ordinal not in range(128)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值