在python中导入库时,我在Kaggle上收到此错误。
相同的导入可以在我的本地计算机上正常运行,没有错误。我尝试使用!pip install plot
在Kaggle上添加情节,但仍然给出相同的错误
import pandas as pd
import seaborn as sns
import numpy as np
import os
import chart_studio
from chart_studio.plotly import iplot
import cufflinks as cf
import plotly.plotly as py
from plotly.graph_objs import *
import chart_studio.plotly
cf.set_config_file(offline=True, world_readable=True, theme='ggplot')
from subprocess import check_output
cf.go_offline()
cf.set_config_file(offline=False, world_readable=True)