GeophyAI

Python与地球物理数据处理

0%

OBSpy installation Q&A

Q&A of installation of obspy

Q: ImportError: Neither Basemap nor Cartopy could be imported.

1
[user]$ conda install basemap

Q: ImportError: cannot import name ‘is scalar’

1
[user]$ pip install matplotlib==3.0.0

Q: AttributeError: ‘Axes’ object has no attribute ‘get axis bgcolor’

1
2
3
[user]$ vim ~/.conda/envs/seismic/lib/python3.6/site-packages/mpl_toolkits/basemap/__init__.py
# Change the directory of you own basemap installaion dir.
[user]$ # replace all 'get_axis_bgcolor' with 'get_facecolor()' in file __init__.py