| 5 | 1/1 | 返回列表 |
| 查看: 1580 | 回復: 4 | ||
wqd198686鐵桿木蟲 (正式寫手)
|
[求助]
急求linux下安裝numpy軟件
|
|
我現(xiàn)在已經安裝了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 保存,之后,進入 numpy-1.7.1目錄下,執(zhí)行編譯命令 python setup.py install 出現(xiàn)如下錯誤: 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修改命令行 |


| 5 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 一志愿 西北大學 ,070300化學學碩,總分287,雙非一本,求調劑。 +5 | 晨昏線與星海 2026-03-20 | 5/250 |
|
|---|---|---|---|---|
|
[材料工程] 一志愿C9材料與化工專業(yè)總分300求調劑 +5 | 曼111 2026-03-24 | 6/300 |
|
|
[考研] 299求調劑 +7 | 某某某某位 2026-03-21 | 8/400 |
|
|
[考研] 機械學碩總分317求調劑。。! +4 | Acaciad 2026-03-25 | 4/200 |
|
|
[考研] 生物技術與工程 +3 | 1294608413 2026-03-25 | 4/200 |
|
|
[考研] 359求調劑 +3 | 王了個楠 2026-03-25 | 3/150 |
|
|
[考研] 材料調劑 +3 | iwinso 2026-03-23 | 3/150 |
|
|
[考研]
材料學碩,求調劑
6+4
|
糖葫蘆888ll 2026-03-22 | 9/450 |
|
|
[考研] 07化學280分求調劑 +7 | 722865 2026-03-23 | 7/350 |
|
|
[考研] 292求調劑 +4 | 鵝鵝鵝額額額額?/a> 2026-03-24 | 4/200 |
|
|
[考研] 材料專碩331求調劑 +4 | 鮮當牛 2026-03-24 | 4/200 |
|
|
[考研] 一志愿河北工業(yè)大學0817化工278分求調劑 +7 | jhybd 2026-03-23 | 12/600 |
|
|
[考研] 一志愿國科過程所081700,274求調劑 +3 | 三水研0水立方 2026-03-23 | 3/150 |
|
|
[考研] 284求調劑 +3 | yanzhixue111 2026-03-23 | 6/300 |
|
|
[考研] 298求調劑 +8 | 上岸6666@ 2026-03-20 | 8/400 |
|
|
[考研] 352求調劑 +3 | 大米飯! 2026-03-22 | 3/150 |
|
|
[考研] 280分求調劑 一志愿085802 +4 | PUMPT 2026-03-22 | 7/350 |
|
|
[考研] 315分,誠求調劑,材料與化工085600 +3 | 13756423260 2026-03-22 | 3/150 |
|
|
[考研] 材料與化工(0856)304求B區(qū)調劑 +3 | 邱gl 2026-03-20 | 7/350 |
|
|
[考研] 一志愿深大,0703化學,總分302,求調劑 +4 | 七月-七七 2026-03-21 | 4/200 |
|