ModuleNotFoundError in import

Hi everybody. This is probably an stupid question because i suck at phyton but i need to work with plotly. The thing is i Installed Plotly as normal with pip (CMD), everything went fantastic but when running the command “import plotly” it just doesn’t work. I reinstalled Phyton and pandas. It’s everything literally just installed but it doesnt work. The error it ouputs is the following

ModuleNotFoundError Traceback (most recent call last)
Cell In[1], line 1
----> 1 import plotly

ModuleNotFoundError: No module named ‘plotly’


image

Welcome to the forums @MynosIII.

You could use the JS version of plotly too, in case it suits you better.

Its really hard to help you with that, it surely is a problem with your local installation. I would recommend to always use virtual environments.

In addition to that, plotly is often imported like this:

import plotly.graph_objects as go
import plotly.express as px