-1

我刚刚尝试在我的 Ubuntu 16.04 Pc 上安装 Nvidia Digits 6.1.1。我仔细做了每个步骤,但在安装结束时,我在启动时收到此错误。

Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/kenan/digits/digits/__main__.py", line 70, in <module>
    main()
  File "/home/kenan/digits/digits/__main__.py", line 55, in main
    import digits.webapp
  File "digits/webapp.py", line 7, in <module>
    from flask_socketio import SocketIO
  File "/usr/local/lib/python2.7/dist-packages/flask_socketio/__init__.py", line 16, in <module>
    import socketio
  File "/home/kenan/.local/lib/python2.7/site-packages/socketio/__init__.py", line 3, in <module>
    from .client import Client
  File "/home/kenan/.local/lib/python2.7/site-packages/socketio/client.py", line 7, in <module>
    import engineio
  File "/home/kenan/.local/lib/python2.7/site-packages/engineio/__init__.py", line 3, in <module>
    from .client import Client
  File "/home/kenan/.local/lib/python2.7/site-packages/engineio/client.py", line 2, in <module>
    from json import JSONDecodeError
ImportError: cannot import name JSONDecodeError

我很感激任何建议。谢谢。

4

1 回答 1

0

我解决了这个问题。如果有人需要,这是我做的方式,

首先我删除from json import JSONDecodeError了位于文件client.py中的行./local/lib/python2.7/site-packages/engineio/

修改后我在 lib 上遇到错误werkzeug

解决方案是这样;

pip install werkzeug==0.16.0

在这些步骤之后,Digits 工作了。

于 2021-02-18T18:47:31.500 回答