回答此问题可获得 20 贡献值,回答如果被采纳可获得 50 分。
<p>我无法在suse11.3中安装scipy。在</p>
<p>我跟踪了这个链接中的文档:</p>
<p><a href="http://www.scipy.org/scipylib/building/linux.html#id7" rel="nofollow">scipy installation</a></p>
<p>我安装了:</p>
<pre><code>lapack
ATLAS
</code></pre>
<p>然后我git克隆scipy并运行python设置.py安装,我一直收到这些错误。我错过了什么步骤吗?在</p>
^{pr2}$
<p>从git安装时出错:</p>
<pre><code>/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 <module>
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)
</code></pre>