Plotly in Jupyter issue

前端 未结 9 2313
暗喜
暗喜 2021-02-13 03:47

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         


        
相关标签:
9条回答
  • 2021-02-13 04:03

    Using plotly.plotly creates errors with different versions of python.

    1. ensure you don't have multiple version of python installed and in your environment variables path.

    2. Try from now to work with 'chart-studio'.

    Run

     'pip install chart-studio'
    

    and then import using:

     'import chart_studio.plotly as py'
    
    0 讨论(0)
  • 2021-02-13 04:15

    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

    0 讨论(0)
  • 2021-02-13 04:15

    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
    
    0 讨论(0)
提交回复
热议问题