I'm having this bizarre experience; I'm re-running a code to plot a geographical graph using Plotly and use
import plotly.express as px
but it gives me the error message saying that "ModuleNotFoundError: No module named 'plotly.express'". I can confirm that plotly is installed, and most importantly it was working until last night. How come its suddenly not finding the module name while it was working until last night? Has something been changed?
Any feedback much appreciated.
Apparently, it turned out that upgrading plotly version solved the problem. To upgrade plotly, I simply run the following codes to check the plotly version.
import plotly
plotly.__version__
That gave me the output of version of plotly as '5.11.0'. Then I upgraded the plotly version to '5.11.0' by writing the following code:
pip install plotly==5.11.0
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.