异常模块的Plotly导入错误

时间:2017-03-14 11:23:05

标签: python matplotlib ipython-notebook jupyter-notebook plotly

我已经搜遍过,无法找到解决此问题的方法。我试图用以下代码在Jupyter Notebook中导入plotly并分别得到以下错误

代码:

import sys
print(sys.path)
sys.path.append('/usr/local/lib/python2.7/dist-packages')

import plotly 

错误:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-3-b41540b5e198> in <module>()
      3 sys.path.append('/usr/local/lib/python2.7/dist-packages')
      4 
----> 5 import plotly

/usr/local/lib/python2.7/dist-packages/plotly/__init__.py in <module>()
     29 from __future__ import absolute_import
     30 
---> 31 from plotly import (plotly, dashboard_objs, graph_objs, grid_objs, tools,
     32                     utils, session, offline, colors)
     33 from plotly.version import __version__

/usr/local/lib/python2.7/dist-packages/plotly/plotly/__init__.py in <module>()
      8 
      9 """
---> 10 from . plotly import (
     11     sign_in,
     12     update_plot_options,

/usr/local/lib/python2.7/dist-packages/plotly/plotly/plotly.py in <module>()
     27 from requests.compat import json as _json
     28 
---> 29 from plotly import exceptions, files, session, tools, utils
     30 from plotly.api import v1, v2
     31 from plotly.plotly import chunked_requests

/usr/local/lib/python2.7/dist-packages/plotly/tools.py in <module>()
     14 import six
     15 
---> 16 from plotly import exceptions, optional_imports, session, utils
     17 from plotly.files import (CONFIG_FILE, CREDENTIALS_FILE, FILE_CONTENT,
     18                           check_file_permissions)

ImportError: cannot import name exceptions

我尝试过的事情:

  • 我试图在没有任何成功的情况下进行剧情升级。

  • 已经卸载并重新安装了带有pip的情节包,没有任何成功

0 个答案:

没有答案