I have made sure that the required packages have been installed. Yet every time I get this same error.
ImportError Traceback (most recent call last)
in ()
9 values = range(len(fips))
10
—> 11 fig = ff.create_choropleth(fips=fips, values=values)
12 py.iplot(fig, filename=‘choropleth of some cali counties - full usa scope’)
/anaconda3/lib/python3.6/site-packages/plotly/figure_factory/_county_choropleth.py in create_choropleth(fips, values, scope, binning_endpoints, colorscale, order, simplify_county, simplify_state, asp, offline_mode, show_hover, show_state_data, state_outline, county_outline, centroid_marker, round_legend_values, exponent_format, legend_title, **layout_options)
563 if not gp or not shapefile or not shapely:
564 raise ImportError(
–> 565 "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”
ImportError: geopandas, pyshp and shapely must be installed for this figure factory.
Run the following commands in the terminal to ensure that the correct versions of the modules are installed:
pip install geopandas==0.3.0
pip install pyshp==1.2.10
pip install shapely==1.6.3