我使用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