从官网下载plotly4.6.0 在window7下安装 C:\Users\Administrator\Desktop>pip3 install plotly-4.6.0-py2.py3-none-any.whl
Python plotly安装出现的问题计解决办法
安装成功后import plotpy,提示ModuleNotFoundError: No module named ‘plotpy’
from plotly.plotly as py 提示The plotly.plotly module is deprecated,
please install the chart-studio package and use the
chart_studio.plotly module instead.

Python plotly安装出现的问题计解决办法
最后搜索资料,执行C:\Users\Administrator\Desktop>pip3 install -i https://pypi.tuna.tsinghua.edu.cn
/simple chart-studio 安装成功:
输入import chart_studio.plotly as py 可以啦

也就是说先下载chart-studio模块,pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple chart-studio 然后import plotly.plotly as py 改成 import chart_studio.plotly as py

参考:https://blog.csdn.net/qq_37430374/article/details/104797551
https://blog.csdn.net/zjkpy_5/article/details/102767999

相关文章:

  • 2021-09-22
  • 2021-04-14
  • 2021-10-11
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
猜你喜欢
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
  • 2021-07-20
  • 2022-12-23
  • 2021-12-28
  • 2022-02-07
相关资源
相似解决方案