如何修复tensorwatch中的``无效语法错误''?

时间:2019-08-05 09:00:03

标签: python tensorflow

我安装了tensorwatch软件包后,我将其导入,但这是一个错误。一些细节如下所示,有人可以帮我吗?非常感谢。

import tensorwatch

Traceback (most recent call last):

  File "C:\Users\33574\Anaconda3\envs\tensorflow2\lib\site-packages\IPython\core\interactiveshell.py", line 2862, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)

  File "<ipython-input-1-d0d9e150d101>", line 1, in <module>
    import tensorwatch

  File "C:\Users\33574\Anaconda3\envs\tensorflow2\lib\site-packages\tensorwatch\__init__.py", line 6, in <module>
    from .watcher_client import WatcherClient

  File "C:\Users\33574\Anaconda3\envs\tensorflow2\lib\site-packages\tensorwatch\watcher_client.py", line 5, in <module>
    from .zmq_wrapper import ZmqWrapper

  File "C:\Users\33574\Anaconda3\envs\tensorflow2\lib\site-packages\tensorwatch\zmq_wrapper.py", line 16
    _thread:Thread = None
           ^
SyntaxError: invalid syntax

1 个答案:

答案 0 :(得分:0)

确保您的python版本是3.5。 它可能在Ubuntu 16.06 LTS中工作,但在Windows上我有同样的问题