python error: ModuleNotFoundError: No module named 'plotly'

python error: ModuleNotFoundError: No module named 'plotly'

Insert image description here
Today, when I was learning matplotlib, I needed to use the plotly.express package. I encountered the problem shown above. Based on the information collected on the Internet, I summarized the following solutions:
①pip install plotly It may be that plotly is not installed.

②Click files in pycharm to find settings Insert image description here
, then find the + sign in the red box in the python interpreter.
Insert image description here
Click the + sign and enter ploty and add it.

If you find that it still doesn't work and you still get an error, try: pip install pandas.
It may be because pandas is not installed!

Guess you like

Origin blog.csdn.net/weixin_48160438/article/details/129110007