红联Linux门户
Linux帮助

Ubuntu安装geopandas

发布时间:2016-06-15 11:09:57来源:linux网站作者:doglesss

不使用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()


本文永久更新地址:http://www.linuxdiyf.com/linux/21538.html