||
for windows
pip install git+https://github.com/compmonks/SOMPY.git
安装好以后在C:\Python35\Lib\site-packages路径下的名字是SOMPY-1.0-py3.5.egg
重命名为SOMPY-1.0-py3.5.zip
右键点击解压
生成sompy 文件夹
进入其中,找到sompy.py 和 mapview.py这两个文件
分别将两个文件中的import ipdb注释掉——即不import ipdb,这应该只是个调试
然后import sompy可用
参考 https://github.com/sevamoo/SOMPY/issues/61
例子:https://gist.github.com/sevamoo/035c56e7428318dd3065013625f12a11
下面这个sompy只有python2.x可以用
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-3-29 04:15
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社