forked from carsonfarmer/python_geospatial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_env.py
More file actions
36 lines (32 loc) · 862 Bytes
/
check_env.py
File metadata and controls
36 lines (32 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import warnings
with warnings.catch_warnings(record=True) as w:
# Main stuff
import numpy
import pandas
import scipy
import sqlite3
import matplotlib
import shapely
import fiona
import rasterio
import pyproj
import descartes
import geopandas
import shapefile
import cartopy
import mplexporter
import mplleaflet
import geojsonio
# Optional stuff
try:
import psycopg2
import mpl_toolkits.basemap
except ImportError, err:
print("Error: " + unicode(err))
print("This is not a required package. "
"See Known Issues for additional information:\n"
"https://github.com/carsonfarmer/python_geospatial/blob/master/"
"install.md#known-issues")
import sys
sys.exit(0)
print("Everything looks good!")