0

请帮忙,

我无法在 CentOS7 上安装 pyhdf。我应该说,我是 linux 的新手

Pyhdf 需要安装 HDF,到目前为止我已经尝试了以下方法:

  1. 首先使用 ./configure、gmake && gmake 检查安装 HDF。但是,检查退出有 6 个错误。

  2. 然后我使用“yum install hdf-devel”这样,HDF安装在计算机上,但pyhdf仍然存在错误。至于 phydf,我尝试了“ pip install pyhdf ”和“ python setup.py install ”,但总是以失败告终。有关详细信息,请参阅下面的日志。谢谢!

    $ python setup.py build running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src build extension "pyhdf. _hdfext" 来源 build_src: 构建 npy-pkg 配置文件 运行 build_py 运行 build_ext 定制 UnixCCompiler 定制 UnixCCompiler 使用 build_ext 构建 'pyhdf._hdfext' 扩展编译 C 源 C 编译器: gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED= 1 -DNDEBUG -O2 -g -管道 -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -I/opt/rh/rh- python36/root/usr/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 - mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -std=c99

    编译选项:'-I/usr/local/hdf4/include -I/home/npec/oop/oop_venv/lib64/python3.6/site-packages/numpy/core/include -I/home/npec/oop/oop_venv /include -I/opt/rh/rh-python36/root/usr/include/python3.6m -c' 额外选项:'-DNOSZIP' gcc -pthread -shared -L/opt/rh/rh-python36/root/ usr/lib64-Wl,-z,relro -Wl,-rpath,/opt/rh/rh-python36/root/usr/lib64 -Wl,--enable-new-dtags build/temp.linux-x86_64-3.6/ pyhdf/hdfext_wrap.o -L/usr/local/hdf4/lib -L/usr/local/jpeg/lib -L/usr/local/zlib/lib -L/usr/local/jpeg/lib -L/usr/ local/zlib/lib -L/usr/local/szip/lib -L/usr/lib -L/usr/local/lib -L/lib -L/opt/rh/rh-python36/root/usr/lib64 - lmfhdf -ldf -ljpeg -lz -lpython3.6m -o build/lib.linux-x86_64-3.6/pyhdf/_hdfext.cpython-36m-x86_64-linux-gnu.so /usr/bin/ld: /usr/local/ hdf4/lib/libmfhdf.a(mfsd.o):重定位 R_X86_64_32 反对.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libmfhdf.a(putget.o): relocation R_X86_64_32S against制作共享对象时不能使用.rodata';使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libmfhdf.a(putgetg.o): 重新定位 R_X86_64_32 对.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libmfhdf.a(string.o): relocation R_X86_64_32 against.rodata.str1.1' 不能在制作共享对象时使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libmfhdf.a(var.o): 重定位 R_X86_64_32 针对.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libmfhdf.a(array.o): relocation R_X86_64_32S against.rodata' 不能在制作共享对象时使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libmfhdf.a(attr.o): 重定位 R_X86_64_32 针对.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libmfhdf.a(cdf.o): relocation R_X86_64_32 against.rodata.str1.1' 不能在制作共享对象时使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libmfhdf.a(dim.o): relocation R_X86_64_32 against.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libmfhdf.a(file.o): relocation R_X86_64_32 against undefined symbol制作共享对象时不能使用rlim';使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libmfhdf.a(hdfsds.o):.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libmfhdf.a(iarray.o): relocation R_X86_64_32 against在制作共享对象时不能使用针对 .rodata.str1.1' 的重定位 R_X86_64_32;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libmfhdf.a(error.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libmfhdf.a(nssdc.o): relocation R_X86_64_32S against.rodata' 在制作共享对象时不能使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libmfhdf.a(xdrposix.o): 重定位 R_X86_64_32S 对.data' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(cszip.o): relocation R_X86_64_32 against.rodata.str1.8' 在制作共享对象时不能使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libdf.a(dfconv.o): relocation R_X86_64_32 against.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(dfgroup.o): relocation R_X86_64_32 against.rodata.str1.8' 制作共享对象时不能使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libdf.a(dfknat.o):.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(dfkswap.o): relocation R_X86_64_32 against制作共享对象时不能使用针对 .rodata.str1.8' 的重定位 R_X86_64_32;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libdf.a(hblocks.o):.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(hchunks.o): relocation R_X86_64_32 against制作共享对象时不能使用针对 .rodata.str1.8' 的重定位 R_X86_64_32;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libdf.a(hcomp.o):.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(herr.o): relocation R_X86_64_32S against制作共享对象时不能使用针对 .rodata 的重定位 R_X86_64_32;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libdf.a(hextelt.o): relocation R_X86_64_32 against.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(hfile.o): relocation R_X86_64_32 against.rodata.str1.8' 制作共享对象时不能使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libdf.a(hfiledd.o): 重定位 R_X86_64_32 针对.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(mcache.o): relocation R_X86_64_32 against.rodata.str1.8' 不能在制作共享对象时使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libdf.a(mfan.o):ANIanncmp' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(mstdio.o): relocation R_X86_64_32 against在制作共享对象时,不能使用针对符号 .rodata.str1.8' 的重定位 R_X86_64_32;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libdf.a(tbbt.o):.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(vattr.o): relocation R_X86_64_32 against制作共享对象时不能使用针对 .rodata.str1.8' 的重定位 R_X86_64_32;重新编译 -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(vg.o): relocation R_X86_64_32 against.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(vgp.o): relocation R_X86_64_32 against symbol制作共享对象时不能使用 vdestroynode';使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libdf.a(vhi.o):.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(vio.o): relocation R_X86_64_32 against制作共享对象时不能使用针对 .rodata.str1.8' 的重定位 R_X86_64_32;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libdf.a(vparse.o):.bss' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(vrw.o): relocation R_X86_64_32 against制作共享对象时不能使用针对 .rodata.str1.8' 的重定位 R_X86_64_32S;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libdf.a(vsfld.o):.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(atom.o): relocation R_X86_64_32S against制作共享对象时不能使用针对 .bss' 的重定位 R_X86_64_32;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libdf.a(bitvect.o): relocation R_X86_64_32S against.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(cdeflate.o): relocation R_X86_64_32 against.rodata.str1.8' 制作共享对象时不能使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libdf.a(cnbit.o): relocation R_X86_64_32 against .rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(cnone.o): relocation R_X86_64_32 against.rodata.str1.8' 在制作共享对象时不能使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libdf.a(crle.o):.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(cskphuff.o): relocation R_X86_64_32 against制作共享对象时不能使用针对 .rodata.str1.8' 的重定位 R_X86_64_32;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libdf.a(dynarray.o): 重定位 R_X86_64_32 对.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(glist.o): relocation R_X86_64_32 against.rodata.str1.8' 不能在制作共享对象时使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libdf.a(hbitio.o): relocation R_X86_64_32 against.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(hbuffer.o): relocation R_X86_64_32 against.rodata.str1.8' 制作共享对象时不能使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libdf.a(hcompri.o): 重定位 R_X86_64_32 对.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(vconv.o): relocation R_X86_64_32 against.rodata.str1.8' 不能在制作共享对象时使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libdf.a(dfcomp.o):.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(dfimcomp.o): relocation R_X86_64_32 against制作共享对象时不能使用针对 .bss' 的重定位 R_X86_64_32;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libdf.a(dfjpeg.o):hdf_init_destination' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libdf.a(dfrle.o): relocation R_X86_64_32S against在制作共享对象时,不能使用针对符号 .bss' 的重定位 R_X86_64_32S;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libdf.a(dfunjpeg.o):针对符号重定位 R_X86_64_32Shdf_init_source' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libjpeg.a(jcapimin.o): relocation R_X86_64_32 against.text' 在制作共享对象时不能使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libjpeg.a(jcapistd.o): 重定位 R_X86_64_32 对.text' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libjpeg.a(jcparam.o): relocation R_X86_64_32S against.rodata' 不能在制作共享对象时使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libjpeg.a(jcinit.o): 重定位 R_X86_64_32 对.text' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libjpeg.a(jcmaster.o): relocation R_X86_64_32S against.text' 在制作共享对象时不能使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libjpeg.a(jcmarker.o): 重定位 R_X86_64_32S 对符号jpeg_natural_order' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libjpeg.a(jcmainct.o): relocation R_X86_64_32S against.text' 在制作共享对象时不能使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libjpeg.a(jcprepct.o): relocation R_X86_64_32S against.text' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libjpeg.a(jccoefct.o): relocation R_X86_64_32S against.text' 在制作共享对象时不能使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libjpeg.a(jccolor.o):重新定位 R_X86_64_32S 对.text' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libjpeg.a(jcsample.o): relocation R_X86_64_32S against.text' 在制作共享对象时不能使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libjpeg.a(jchuff.o):jpeg_natural_order' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libjpeg.a(jcphuff.o): relocation R_X86_64_32S against在制作共享对象时,不能使用针对符号 .text' 的重定位 R_X86_64_32S;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libjpeg.a(jcdctmgr.o): 重定位 R_X86_64_32S 对.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libjpeg.a(jfdctfst.o): relocation R_X86_64_32 against.text' 不能在制作共享对象时使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libjpeg.a(jfdctflt.o): relocation R_X86_64_32 against.text' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libjpeg.a(jfdctint.o): relocation R_X86_64_32 against.text' 在制作共享对象时不能使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libjpeg.a(jdapimin.o): 重定位 R_X86_64_32S 对.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libjpeg.a(jdapistd.o): relocation R_X86_64_32 against.text' 不能在制作共享对象时使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libjpeg.a(jdmaster.o):.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libjpeg.a(jdinput.o): relocation R_X86_64_32S against制作共享对象时不能使用针对 .text' 的重定位 R_X86_64_32S;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libjpeg.a(jdmarker.o):.text' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libjpeg.a(jdhuff.o): relocation R_X86_64_32S against制作共享对象时无法使用针对 .rodata 的重定位 R_X86_64_32S;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libjpeg.a(jdphuff.o): relocation R_X86_64_32S against.text' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libjpeg.a(jdmainct.o): relocation R_X86_64_32S against.text' 在制作共享对象时不能使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libjpeg.a(jdcoefct.o): 重定位 R_X86_64_32S 对.text' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libjpeg.a(jdpostct.o): relocation R_X86_64_32S against.text' 不能在制作共享对象时使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libjpeg.a(jddctmgr.o): 重定位 R_X86_64_32 对符号jpeg_idct_2x2' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libjpeg.a(jidctfst.o): relocation R_X86_64_32 against.text' 不能在制作共享对象时使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libjpeg.a(jidctflt.o): 重定位 R_X86_64_32 对.text' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libjpeg.a(jidctint.o): relocation R_X86_64_32 against.text' 不能在制作共享对象时使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libjpeg.a(jidctred.o): relocation R_X86_64_32 against.text' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libjpeg.a(jdsample.o): relocation R_X86_64_32S against.text' 在制作共享对象时不能使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libjpeg.a(jdcolor.o): 重定位 R_X86_64_32S 对.text' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libjpeg.a(jquant1.o): relocation R_X86_64_32S against.text' 不能在制作共享对象时使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libjpeg.a(jquant2.o): 重定位 R_X86_64_32S 对.text' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libjpeg.a(jdmerge.o): relocation R_X86_64_32S against.text' 不能在制作共享对象时使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libjpeg.a(jcomapi.o):重新定位 R_X86_64_32 对.text' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libjpeg.a(jutils.o): relocation R_X86_64_32 against.text' 在制作共享对象时不能使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libjpeg.a(jerror.o): relocation R_X86_64_32S against.text' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libjpeg.a(jmemmgr.o): relocation R_X86_64_32S against制作共享对象时不能使用.rodata';使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libjpeg.a(jmemnobs.o): 重定位 R_X86_64_32 针对.text' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libz.a(deflate.o): relocation R_X86_64_32S against.rodata' 不能在制作共享对象时使用;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libz.a(inflate.o):.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libz.a(inftrees.o): relocation R_X86_64_32S against制作共享对象时不能使用针对 .rodata 的重定位 R_X86_64_32S;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libz.a(trees.o):.data' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libz.a(zutil.o): relocation R_X86_64_32 against制作共享对象时不能使用针对 .rodata.str1.1' 的重定位 R_X86_64_32S;使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libz.a(adler32.o): relocation R_X86_64_32 against.text' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/hdf4/lib/libz.a(crc32.o): relocation R_X86_64_32 against制作共享对象时不能使用.rodata';使用 -fPIC /usr/bin/ld 重新编译:/usr/local/hdf4/lib/libz.a(inffast.o): 重定位 R_X86_64_32S 对 `.rodata.str1.1' 不能在制作共享对象时使用;使用 -fPIC /usr/bin/ld 重新编译:最终链接失败:输出 collect2 上的不可表示部分:错误:ld 返回 1 退出状态错误:命令“gcc -pthread -shared -L/opt/rh/rh-python36/root/ usr/lib64-Wl,-z,relro -Wl,-rpath,/opt/rh/rh-python36/root/usr/lib64 -Wl,--enable-new-dtags build/temp.linux-x86_64-3.6/ pyhdf/hdfext_wrap.o -L/usr/local/hdf4/lib -L/usr/local/jpeg/lib -L/usr/local/zlib/lib -L/usr/local/jpeg/lib -L/usr/ local/zlib/lib -L/usr/local/szip/lib -L/usr/lib -L/usr/local/lib -L/lib -L/opt/rh/rh-python36/root/usr/lib64 - lmfhdf -ldf -ljpeg -lz -lpython3.6m -o build/lib.linux-x86_64-3.6/pyhdf/_hdfext。

4

1 回答 1

0

这本身并不是对所提出问题的回答,而是为我提供了摆脱困境的方法。
我希望我马上就知道。

为了pyhdf启动和运行,我只是设置了 anaconda 环境。有关设置 conda 环境的详细信息,请访问Anaconda官方网站。非常感谢 Anaconda 团队

从那里开始,一切都很简单pip/conda install

刚接触 Linux 环境可能会令人沮丧,但一旦一切就绪,快乐就来了。

于 2020-01-27T06:32:22.197 回答