我尝试过安装basemap,并采用了多种方法,但都没有成功。我对python和使用terminal非常陌生,所以请用非常描述性的方式回答。你知道吗
这是我发现的最广泛的一套说明: Matplotlib Basemap Tutorial(向下滚动至标题“从源安装Basemap”)
我遵循了以下所有代码:
basemap-1.x.x $ cd geos-3.3.3
basemap-1.x.x/geos-3.3.3 $ export GEOS_DIR=~/
basemap-1.x.x/geos-3.3.3 $ ./configure --prefix=$GEOS_DIR
basemap-1.x.x/geos-3.3.3 $ make
basemap-1.x.x/geos-3.3.3 $ make install
我还按照链接的建议“将basemap文件夹拖到/usr/local/”,并将上面的第二行作为:
basemap-1.x.x/geos-3.3.3 $ export GEOS_DIR=/usr/local
最后:
basemap-1.x.x $ python setup.py install
在这一行之后,我得到以下信息:
ld: can't write output file: nad2bin for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) ld: can't write output file: nad2bin for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Traceback (most recent call last): File "setup.py", line 99, in cc.link_executable(objects, execname) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/ccompiler.py", line 700, in link_executable debug, extra_preargs, extra_postargs, None, target_lang) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/unixccompiler.py", line 200, in link raise LinkError, msg distutils.errors.LinkError: Command "cc nad2bin.o src/pj_malloc.o -o nad2bin" failed with exit status 1
我做错什么了?你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐