title: How to install 'plotly' from inside Anaconda under Colab on Mac
body: <p>I tried to import <code>plotly</code> in <code>Anaconda</code> with code</p>
  
  <pre><code>import plotly.graph_objs as go
  from plotly import __version__
  from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
  init_notebook_mode(connected=True)
  </code></pre>
  
  <p>but received error</p>
  
  <pre><code>---------------------------------------------------------------------------
  ModuleNotFoundError                       Traceback (most recent call last)
  &lt;ipython-input-11-978bd9a5088a&gt; in &lt;module&gt;
       14 
       15 # import plotly.plotly as py
  ---&gt; 16 import plotly.graph_objs as go
       17 from plotly import __version__
       18 from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
  
  ModuleNotFoundError: No module named 'plotly'
  </code></pre>
  
  <p>I have checked a number of similar posts to install <code>'plotly'</code> on <code>Jupyter</code> but somehow I couldn't do it on Mac. I usually use Google Colab, could it be the reason that I am using different platforms that caused the confusion when installing? </p>