Installing Plotly (ModuleNotFoundError: No module named 'plotly')

Well I have some new information. When I run import plotly in an IPython window via VS Code I get the same result as in a Jupyter notebook. But when I run this line in a Python terminal via VS Code it executes without an error!