I installed plotly.py to work some plots using Jupyter but I cannot import it.
! pip install plotly --upgrade
Requirement already up-to-date: plotly in c:\\pytho
Using plotly.plotly creates errors with different versions of python.
ensure you don't have multiple version of python installed and in your environment variables path.
Try from now to work with 'chart-studio'.
Run
'pip install chart-studio'
and then import using:
'import chart_studio.plotly as py'
I found the solution by going through the directories. pip install is installing in default python lib folder, a more in-depth answer is here.
https://stackoverflow.com/a/48774224/9176740
probably it is a venv issue. Try starting jupyternotebook as follows and install plotly from whithin which will ensure that you are running jupyter from your environment.
python -m jupyter notebook