Plotly’s AttributeError: module ‘plotly.validators.layout.margin._t’ has no attribute ‘TValidator’
Plotly Error Message:
AttributeError: module ‘plotly.validators.layout.margin._t’ has no attribute ‘TValidator’
What worked for me:
I ran the following commands to verify that plotly was installed with both.
$ pip list
$ conda list
After confirming they were, I uninstalled both with the following commands:
$ pip uninstall plotly
$ conda uninstall plotly
Lastly, I reinstall plotly using only one install method (conda):
conda install -c plotly plotly
I ran into this issue multiple times and noticed it would happen after updating all my Anaconda packages. The first mistake was sharing an environment with multiple projects. Anyways, I hope this helps anyone receiving the same error!