ImportError: The plotly.plotly module is deprecated,please install the chart-studio
ImportError: The plotly.plotly module is deprecated,please install the chart-studio package and use the chart_studio.plotly module instead.
问题:
plotly原有api过期了
import plotly.plotly as py
import cufflinks as cf
import pandas as pdcf.set_config_file(offline=True, theme='ggplot')N = 500
x = np.linspace(0, 1, N)
y = np.random.randn(N)
df = pd.DataFrame({'x': x, 'y': y})
df.set_index('x',inplace=True)df.iplot(kind='scatter', filename='tmp/cf_line.html')
解决:
#安装
pip install chart-studio
#导入
from chart_studio import plotly
from chart_studio import plotly as py
import cufflinks as cf
import pandas as pd
import numpy as npcf.set_config_file(offline=True, theme='ggplot')N = 500
x = np.linspace(0, 1, N)
y = np.random.randn(N)
df = pd.DataFrame({'x': x, 'y': y})
df.set_index('x',inplace=True)df.iplot(kind='scatter', filename='cf_line.html')
完整错误日志
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-235d2cc141ff> in <module>
----> 1 import plotly.plotly as py2 import cufflinks as cf3 import pandas as pd4 5 cf.set_config_file(offline=True, theme='ggplot')D:\anaconda\lib\site-packages\plotly\plotly\__init__.py in <module>2 from _plotly_future_ import _chart_studio_error3
----> 4 _chart_studio_error("plotly")D:\anaconda\lib\site-packages\_plotly_future_\__init__.py in _chart_studio_error(submodule)47 chart_studio.{submodule} module instead.48 """.format(
---> 49 submodule=submodule50 )51 )ImportError:
The plotly.plotly module is deprecated,
please install the chart-studio package and use the
chart_studio.plotly module instead.
参考:How do I fix a deprecated module for plotly.plotly
ImportError: The plotly.plotly module is deprecated,please install the chart-studio相关推荐
- 【plotly】ImportError: The plotly.plotly module is deprecated, please install the chart-studio package
报错: ImportError: The plotly.plotly module is deprecated, please install the chart-studio package and ...
- DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5
原来的python脚本是在Ubuntu 14.04 64bit上写的,运行没有问题,但是在CentOS 6.3上的crontab中定时执行时,每次都报 DeprecationWarning: the ...
- DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5的解决办法
今天在学习python的md5模块的时候,做练习,遇到DeprecationWarning: the md5 module is deprecated; use hashlib instead i ...
- 成功解决Future Warning: The sklearn.neighbors.dist_metrics module is deprecated in version 0.22 and wil
成功解决Future Warning: The sklearn.neighbors.dist_metrics module is deprecated in version 0.22 and wil ...
- 成功解决This module was deprecated in version 0.18 in favor of the model_selection module into which all
成功解决This module was deprecated in version 0.18 in favor of the model_selection module into which all ...
- 成功解决sklearn\grid_search.py:42: DeprecationWarning: This module was deprecated in version 0.18 in fav
成功解决sklearn\grid_search.py:42: DeprecationWarning: This module was deprecated in version 0.18 in fav ...
- 成功解决sklearn\cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 i
成功解决sklearn\cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 i ...
- VS Code 调试JavaScript报错:“crbug1173575, non-JS module files deprecated”
按照网上的方法(VSCODE 调试 Javascript)装好debugger for chrome扩展后,调试JavaScript,结果无法正常在浏览器中显示网页,报错:"crbug/11 ...
- TensorFlow ImportError: (‘Failed to import pydot. You must `pip install pydot`)
ImportError: ('Failed to import pydot. You must pip install pydot and install graphviz (https://grap ...
最新文章
- 图解MySQL数据库的安排和把持-1
- Rtx userlist.php,【图片】【C语言】【控制台】提取腾讯通用户信息(id,用户名,手机)【erbi_lucifer吧】_百度贴吧...
- python实现人脸识别比对_人脸识别并比对实现(基于face_recognition)
- win7笔记本外接显示器html,win7系统笔记本外接显示器的操作方法
- React开发者工具 React Developer Tools 的下载
- Springboot2.2对put,detele方法的更改
- 分享6个教师常用的网站,再也不用到处找资源了
- 应对焦虑的时候,需要学会一次只解决一个问题
- Tensorflow2.1基础知识---复杂度、学习率、激活函数、损失函数
- canvas绘制字体时遇到Bookshelf Symbol 7字体bug
- Arch-Linux-安装避坑指南
- 【processing笔记】
- H3C SecPath F100 系列
- 不可思议的Qt GrahpicView演示-重返德军总部(有视频哦)
- android 多点下载地址,多点app下载安装多点
- 天气api获取24小时逐小时天气预报接口调用方法
- 数据库原理-模式分解算法详解(3NF BCNF)
- 针对传感网的数据管理系统结构有_智慧树知到APP军事理论-综合版见面课答案...
- 基于Uniapp+SpringBoot实现微信小程序授权登录
- c语言tanh函数,C ++ STL中的tanh()函数
热门文章
- JVM---程序计数器
- python运行完不能显示图_【已解决】Python中通过Image的open之后,去show结果打不开bmp图片,无法正常显示图片...
- java 复制 粘贴_在java中如何实现复制,粘贴,剪切
- mysql profiling表_Mysql-性能分析(profiling 工具)
- 双目立体视觉 I:标定和校正
- 将二进制流转换为图片
- 单目相机的内外参标定
- RDKit | 可视化官能团, 分子聚类, 相似图, 化合物高亮和骨架网络
- Science | 初步的SARS-CoV-2蛋白酶抑制剂在小鼠中显示功效
- RDKit | 基于Fraggle算法评估化合物的相似性