"import plotly" fails after clean install

I am on a Windows 10 computer, running python 3.7.5. After installing plotly using “python -m pip install plotly” I am unable to execture “import plotly”. It fails with the following message. If anyone knows why this doesn’t work on my default installation, please let me know.

C:\Users\HOM4FH>python
Python 3.7.5 (tags/v3.7.5:5c02a39a0b, Oct 15 2019, 00:11:34) [MSC v.1916 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.

import plotly
Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\HOM4FH\AppData\Local\Programs\Python\Python37\lib\site-packages\plotly_init_.py”, line 30, in
from plotly import (
File “C:\Users\HOM4FH\AppData\Local\Programs\Python\Python37\lib\site-packages\plotly\graph_objs_init_.py”, line 92710, in
from ._figurewidget import FigureWidget
File “C:\Users\HOM4FH\AppData\Local\Programs\Python\Python37\lib\site-packages\plotly\graph_objs_figurewidget.py”, line 1, in
from plotly.basewidget import BaseFigureWidget
File “C:\Users\HOM4FH\AppData\Local\Programs\Python\Python37\lib\site-packages\plotly\basewidget.py”, line 19, in
@widgets.register
AttributeError: module ‘ipywidgets’ has no attribute ‘register’

Hi,
what is your version of ipywidgets?

If I remember correctly, sould be 7.5

Alex-

This problem was solved after switching from Python 3.7.5 to 3.8. So probably a version incompatibility somewhere, but I believe this issue is already documented