Plotly’s AttributeError: module ‘plotly.validators.layout.margin._t’ has no attribute ‘TValidator’

Joseph
Jun 8, 2021

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!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Joseph
Joseph

Written by Joseph

Data Scientist & Information Design Enthusiast

No responses yet

Write a response