It turns out I have the same issue, and I have the python file named as "plotly.py" Which trigger the error: ModuleNotFoundError: No module named 'plotly.express'; 'plotly' is not a package
Renaming the file fixes the issue.