[英]Error: No module named '_plotly_utils.importers' when import a module plotly for python
I am working in a jupiter notebook using a conda environment.我正在使用 conda 环境的 Jupiter 笔记本中工作。 I am trying to import a module plotly (library for Python) for plotting, but I get an error (see below).
我正在尝试导入一个模块(Python 库)进行绘图,但出现错误(见下文)。
from plotly import graph_objects as go
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-41-077f328b714a> in <module>
----> 1 from plotly import graph_objects as go
D:\Anaconda3\lib\site-packages\plotly\__init__.py in <module>
28 from __future__ import absolute_import
29 import sys
---> 30 from _plotly_utils.importers import relative_import
31
32
ModuleNotFoundError: No module named '_plotly_utils.importers'
I already did pip install plotly-utils.我已经做了 pip install plotly-utils。
CMD with conda environment give me this after pip list:带有 conda 环境的 CMD 在 pip list 后给我这个:
(base) C:\Users\Alex>pip list
Package Version
---------------------------------- -------------------
...
...
plotly 4.9.0
plotly-utils 0.0.3
pluggy 0.13.1
ply 3.11
prometheus-client 0.8.0
...
...
But i still have this problem.但我仍然有这个问题。 Where can i find and install the module _plotly_utils.importers ?
我在哪里可以找到并安装_plotly_utils.importers模块?
Try this尝试这个
conda install -c https://conda.anaconda.org/plotly plotly
if it doesn't work try this如果它不起作用试试这个
pip install plotly
pip install cufflinks
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.