0

我在 ubuntu 18.04 上安装了破折号:pip3 install dash。破折号的版本说 1.16.0

然后我有一个测试程序test.py,我得到以下错误。怎么了?

import plotly
import dash
import dash_core_components as dcc   <<<<<<<<<<<<< error here:
   Exception has occurred:SystemExit
    1
      File "..../test.py, line 3, in <module>
        import dash_core_components as dcc
      File "..../test.py, line 2, in <module>
       import dash
4

1 回答 1

1

这有时会发生在目录中名为test.py. 删除该文件应该可以解决该错误。

于 2020-09-09T00:40:56.700 回答