from neupy import algorithms
从 anaconda base运行时,我收到以下错误日志:
Traceback (most recent call last):
File "/home/hp/anaconda3/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3418, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-5-5e37c596fadb>", line 1, in <module>
from neupy import algorithms
File "/home/hp/anaconda3/lib/python3.8/site-packages/neupy/algorithms/__init__.py", line 1, in <module>
from .gd.base import *
File "/home/hp/anaconda3/lib/python3.8/site-packages/neupy/algorithms/gd/base.py", line 6, in <module>
import tensorflow as tf
File "/home/hp/anaconda3/lib/python3.8/site-packages/tensorflow/__init__.py", line 22, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "/home/hp/anaconda3/lib/python3.8/site-packages/tensorflow/python/__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "/home/hp/anaconda3/lib/python3.8/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/home/hp/anaconda3/lib/python3.8/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 114
def TFE_ContextOptionsSetAsync(arg1, async):
^
SyntaxError: invalid syntax
`import neupy` produces no error.