如何在Linux AMI中为python安装GDAL

时间:2019-07-16 03:21:51

标签: python linux anaconda gdal osgeo

我使用conda为python安装了pymodis库。当我尝试导入pymodis时,它说它具有需要安装的依赖项(gdal)。谁能建议我按照步骤为Linux AMI安装gdal?我无法正确安装。

这是尝试导入pymodis时显示的错误:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ec2-user/anaconda3/lib/python2.7/site-packages/pymodis/__init__.py", line 1, in <module>
    import downmodis, parsemodis, convertmodis, optparse_required
  File "/home/ec2-user/anaconda3/lib/python2.7/site-packages/pymodis/downmodis.py", line 42, in <module>
    raise('Python GDAL library not found, please install python-gdal')
TypeError: exceptions must be old-style classes or derived from BaseException, not str

0 个答案:

没有答案