Skip to content

Commit 274b003

Browse files
committed
change error msg for pip installs in choropleth
1 parent 0bde4e1 commit 274b003

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

plotly/figure_factory/_county_choropleth.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -563,11 +563,15 @@ def create_choropleth(fips, values, scope=['usa'], binning_endpoints=None,
563563
if not gp or not shapefile or not shapely:
564564
raise ImportError(
565565
"geopandas, pyshp and shapely must be installed for this figure "
566-
"factory.\n\nRun the following commands in the terminal to "
567-
"ensure that the correct versions of the modules are installed:\n"
566+
"factory.\n\nIf you are using OS X run the following commands in "
567+
"the terminal to ensure that the correct versions of the modules "
568+
"are installed:\n"
568569
"`pip install geopandas==0.3.0`\n"
569570
"`pip install pyshp==1.2.10`\n"
570-
"`pip install shapely==1.6.3`\n"
571+
"`pip install shapely==1.6.3`\n\n"
572+
"If you are using Windows, follow this blog post to properly "
573+
"install geopandas and its dependencies including shapely:\n"
574+
"http://geoffboeing.com/2014/09/using-geopandas-windows/"
571575
)
572576

573577
df, df_state = _create_us_counties_df(st_to_state_name_dict,

0 commit comments

Comments
 (0)