不使用anaconda,使用原生的python2.7。
执行以下命令:
sudo apt-get install Python-pip
sudo apt-get install python-numpy
sudo apt-get install python-pandas
sudo apt-get install python-shapely
sudo apt-get install python-fiona
sudo apt-get install python-six
sudo apt-get install python-geopy
sudo apt-get install python-psycopg2
sudo apt-get install python-matplotlib
sudo apt-get install python descartes
pip install geopandas
使用示例:
import geopandas as gpd
import matplotlib.pyplot as plt
df=gpd.read_file("tianjin_china_roads.geojson")
df.plot()
plt.show()