在Jupyter Notebook中为CPU版本导入Tensorflow时出错

时间:2019-01-02 11:17:07

标签: python jupyter-notebook jupyter

我正在使用jipter的pip版本。

我尝试了anaconda,它不起作用,并且我正在使用python 1.10.0,但收到此错误Traceback (most recent call last)

  

文件“ c:\ users \ user \ appdata \ local \ programs \ python \ python37-32 \ lib \ site-packages \ IPython \ core \ interactiveshell.py”,行3267,在run_code中       exec(code_obj,self.user_global_ns,self.user_ns)

     

文件“”,第1行,在       将tensorflow导入为tf

     

文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python37 \ site-packages \ tensorflow__init __。py”,第22行,在       从tensorflow.python import pywrap_tensorflow#pylint:disable = unused-import

     

文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python37 \ site-packages \ tensorflow \ python__init __。py”,第49行,在       从tensorflow.python导入pywrap_tensorflow

     

文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python37 \ site-packages \ tensorflow \ python \ pywrap_tensorflow.py”,第58行,在       从tensorflow.python.pywrap_tensorflow_internal导入*

     

文件“ C:\ Users \ user \ AppData \ Roaming \ Python \ Python37 \ site-packages \ tensorflow \ python \ pywrap_tensorflow_internal.py”,第114行       定义TFE_ContextOptionsSetAsync(arg1,async):                                                ^   SyntaxError:语法无效`

0 个答案:

没有答案