错误

1.“from shapely.geometry import Point, LineString, Polygon”时报错:

OSError: Could not find library geos_c or load any of its variants ['libgeos_c.so.1', 'libgeos_c.so

这是因为geos的目录未加入到环境变量,可以在~/.bashrc中添加

export GEOS_LIBRARY_PATH=/opt/source/geos-3.5.0/build/lib

source ~/.bashrc

即可。 

 

2. error: Python.h: No such file or directory

没有安装python-dev

sudo apt-get install python2.7-dev


 
                    
            
                

相关文章:

  • 2022-01-08
  • 2022-01-14
  • 2022-01-31
  • 2021-09-29
  • 2021-09-28
  • 2021-08-07
  • 2021-09-30
  • 2021-11-27
猜你喜欢
  • 2021-10-20
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
  • 2021-07-15
相关资源
相似解决方案