本文介绍了导入错误:没有名为plotly.plotly的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究项目并遇到此错误

I am working on project and getting this error

我尝试过:

  1. 通过pip进行情节安装
  2. pip install --plotly升级

但是import plotly.plotly as py无效.

推荐答案

不确定pyzopython模块是否存储在计算机上的其他位置.以及如何引用它们.

Not sure if pyzo and python modules are stored at different location on your computer. And how they are referred.

但是您可以尝试在加载模块时遵循以下步骤为plotly提供绝对路径名称,并查看其是否有效.

But you can try following to give absolute path name for plotly while loading module and see if it works.

import sys
sys.path.insert(0, c:\pyzo2015a\lib\site-packages\plotly')
import plotly.plotly as py

这篇关于导入错误:没有名为plotly.plotly的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 16:29