As a heads-up: since July 2019, the new and recommended way to export static images from Plotly.py is to use Kaleido, which is trivial to install with just pip install kaleido
and will automatically be picked up by versions of Plotly.py greater than 4.9!