I am working on project and getting this error
ImportError: No module named plotly.plotly
I tried:
- pip install plotly
- pip install --upgrade plotly
But import plotly.plotly as py didn't work.
Not sure if pyzo and python modules are stored at different location on your computer. And how they are referred.
But you can try following to give absolute path name for plotly while loading module and see if it works.
import sys
sys.path.insert(0, 'c:\\pyzo2015a\\lib\\site-packages\\plotly')
import plotly.plotly as py
I had the same exact problem, but the current answer did not resolve my issues. If that's the case, here is an alternative (IDE dependent):
I was not having success with the "pip" stuff. I am using PyCharm, and the following simple steps took care of my problems in less than 30 seconds.
Maybe one day I won't be a dumb monkey who doesn't know how to use a command line like all the cool kids, but for now this worked for me.
pip show plotlyshow? if it's installed it will show the installed directory, where are you running python from?installcmd: pyzo.org/start.html#step-3-install-scientific-packages. doesinstall plotlywork? Have you tried restarting your environment? Personally I'd just use anaconda as it just works