2 Replies - 195 Views - Last Post: 24 February 2020 - 12:24 AM Rate Topic: -----

#1 SacPy   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 26
  • Joined: 18-June 19

ModuleNotFoundError: No module named 'plotly'

Posted 21 February 2020 - 05:31 AM

Hi,

I am trying below code to import text file in Spyder.
File is getting imported but am getting stuck while importing plotly.

Am getting error as 'ModuleNotFoundError: No module named 'plotly'
Can anyone please help me understand this.

import pandas as MyPandas
import plotly.express as px
df = MyPandas.read_csv('Python Chart Data.txt')
print(df)
fig = px.line(df, x = 'AAPL_x', y = 'AAPL_y', title='Apple Share Prices over time (2014)')
fig.show()



Is This A Good Question/Topic? 0
  • +

Replies To: ModuleNotFoundError: No module named 'plotly'

#2 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15564
  • View blog
  • Posts: 62,309
  • Joined: 12-June 08

Re: ModuleNotFoundError: No module named 'plotly'

Posted 21 February 2020 - 07:45 AM

Do what it's telling you - install plotly to your python environment.

"spyder install module"
Was This Post Helpful? 1
  • +
  • -

#3 SacPy   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 26
  • Joined: 18-June 19

Re: ModuleNotFoundError: No module named 'plotly'

Posted 24 February 2020 - 12:24 AM

Hi modi123_1 sorry for late reply. Thanks for the help. Have a nice day ahead. :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1