| 5 | 1/1 | 返回列表 |
| 查看: 1581 | 回復(fù): 4 | |||
wqd198686鐵桿木蟲(chóng) (正式寫(xiě)手)
|
[求助]
急求linux下安裝numpy軟件
|
|
我現(xiàn)在已經(jīng)安裝了python 2.7,現(xiàn)在要安裝numpy軟件,把site.cfg.example變?yōu)閟ite.cfg,然后修改后面的mkl部分,如下 # MKL #---- # For recent (9.0.21, for example) mkl, you need to change the names of the # lapack library. Assuming you installed the mkl in /opt, for a 32 bits cpu: # [mkl] # library_dirs = /opt/intel/mkl/9.1.023/lib/32/ # lapack_libs = mkl_lapack # # For 10.*, on 32 bits machines: # [mkl] library_dirs = /opt/intel/mkl/10.0.5.025/lib/32/ include_dirs = /opt/intel/mkl/include lapack_libs = mkl_lapack mkl_libs = mkl, guide 保存,之后,進(jìn)入 numpy-1.7.1目錄下,執(zhí)行編譯命令 python setup.py install 出現(xiàn)如下錯(cuò)誤: Running from numpy source directory. usage: svnversion wc_path [trail_url] F2PY Version 2 Traceback (most recent call last): File "setup.py", line 214, in <module> setup_package() File "setup.py", line 207, in setup_package configuration=configuration ) File "/home/lcc01/CanTherm/numpy-1.7.1/numpy/distutils/core.py", line 152, in setup config = configuration() File "setup.py", line 147, in configuration config.add_subpackage('numpy') File "/home/lcc01/CanTherm/numpy-1.7.1/numpy/distutils/misc_util.py", line 1003, in add_subpackage caller_level = 2) File "/home/lcc01/CanTherm/numpy-1.7.1/numpy/distutils/misc_util.py", line 972, in get_subpackage caller_level = caller_level + 1) File "/home/lcc01/CanTherm/numpy-1.7.1/numpy/distutils/misc_util.py", line 909, in _get_configuration_from_setup_py config = setup_module.configuration(*args) File "numpy/setup.py", line 9, in configuration config.add_subpackage('core') File "/home/lcc01/CanTherm/numpy-1.7.1/numpy/distutils/misc_util.py", line 1003, in add_subpackage caller_level = 2) File "/home/lcc01/CanTherm/numpy-1.7.1/numpy/distutils/misc_util.py", line 972, in get_subpackage caller_level = caller_level + 1) File "/home/lcc01/CanTherm/numpy-1.7.1/numpy/distutils/misc_util.py", line 909, in _get_configuration_from_setup_py config = setup_module.configuration(*args) File "numpy/core/setup.py", line 896, in configuration blas_info = get_info('blas_opt',0) File "/home/lcc01/CanTherm/numpy-1.7.1/numpy/distutils/system_info.py", line 338, in get_info return cl().get_info(notfound_action) File "/home/lcc01/CanTherm/numpy-1.7.1/numpy/distutils/system_info.py", line 449, in __init__ self.parse_config_files() File "/home/lcc01/CanTherm/numpy-1.7.1/numpy/distutils/system_info.py", line 456, in parse_config_files self.cp.read(self.files) File "/usr/local/lib/python2.5/ConfigParser.py", line 267, in read self._read(fp, filename) File "/usr/local/lib/python2.5/ConfigParser.py", line 462, in _read raise MissingSectionHeaderError(fpname, lineno, line) ConfigParser.MissingSectionHeaderError: File contains no section headers. file: /home/lcc01/CanTherm/numpy-1.7.1/site.cfg, line: 143 ' library_dirs = /opt/intel/mkl/10.0.5.025/lib/32/\n' Exception exceptions.AttributeError: "'NoneType' object has no attribute 'maxint'" in <bound method Popen.__del__ of <subprocess.Popen object at 0x40490c4c>> ignored 急求高手幫助!。。。。。。。。。。。。。!1 |
|
使用intel編譯器安裝numpy, scipy numpy: 新建site.cfg: [mkl] library_dirs = /home/yyy/xxx/bin/intel/mkl/lib/intel64/ include_dirs = /home/yyy/xxx/bin/intel/mkl/include mkl_libs = mkl_rt lapack_libs = 修改./numpy-1.6.1/numpy/distutils/intelccompiler.py: 將self.cc_exe(class intel或class intelem里的)為: self.cc_exe = 'icc -O3 -g -fPIC -fp-model strict -fomit-frame-pointer -openmp -xhost' 編譯: python setup.py config --compiler=intel build_clib --compiler=intel build_ext --compiler=intel install 64位將intel改為intelem scipy編譯: python setup.py config --compiler=intel --fcompiler=intel build_clib --compiler=intel --fcompiler=intel build_ext --compiler=intel --fcompiler=intel install 64位同numpy修改命令行 |


銅蟲(chóng) (初入文壇)
| 5 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 271求調(diào)劑 +6 | 生如夏花… 2026-03-22 | 6/300 |
|
|---|---|---|---|---|
|
[考研] 321求調(diào)劑 +4 | wasdssaa 2026-03-26 | 4/200 |
|
|
[考研] 化學(xué)工程085602 305分求調(diào)劑 +16 | RichLi_ 2026-03-25 | 16/800 |
|
|
[考研] 289求調(diào)劑 +17 | 碩星赴 2026-03-23 | 17/850 |
|
|
[考研] 086000生物與醫(yī)藥292求調(diào)劑 +6 | 小小陳小小 2026-03-22 | 9/450 |
|
|
[考研] 297求調(diào)劑 +6 | 田洪有 2026-03-26 | 6/300 |
|
|
[考研] 085600 材料與化工 329分求調(diào)劑 +9 | Mr. Z 2026-03-25 | 9/450 |
|
|
[考研] 考研調(diào)劑 +6 | 來(lái)好運(yùn)來(lái)來(lái)來(lái) 2026-03-21 | 7/350 |
|
|
[考研] 材料專(zhuān)碩 335 分求調(diào)劑 +4 | 拒絕冷暴力 2026-03-25 | 4/200 |
|
|
[考研] 289求調(diào)劑 +9 | 懷瑾握瑜l 2026-03-20 | 9/450 |
|
|
[考研] 一志愿北化315 求調(diào)劑 +3 | akrrain 2026-03-24 | 3/150 |
|
|
[考研] 307求調(diào)劑 +3 | 余意卿 2026-03-21 | 6/300 |
|
|
[考研] 344求調(diào)劑 +3 | desto 2026-03-24 | 3/150 |
|
|
[考研] 一志愿重慶大學(xué)085700資源與環(huán)境,總分308求調(diào)劑 +7 | 墨墨漠 2026-03-23 | 8/400 |
|
|
[考研] 276求調(diào)劑 +3 | YNRYG 2026-03-21 | 4/200 |
|
|
[考研] 311求調(diào)劑 +3 | 26研0 2026-03-20 | 3/150 |
|
|
[考研] 初試 317 +7 | 半拉月丙 2026-03-20 | 7/350 |
|
|
[考研] 279求調(diào)劑 +5 | 紅衣隱官 2026-03-21 | 5/250 |
|
|
[考研] 085601調(diào)劑 358分 +3 | zzzzggh 2026-03-20 | 4/200 |
|
|
[考研] A區(qū)線(xiàn)材料學(xué)調(diào)劑 +5 | 周周無(wú)極 2026-03-20 | 5/250 |
|