我通过anaconda提示符安装了tensorflow并为spyder和jupyter笔记本的tensorflow创建了一个新的env,但是通过以下代码打开spyder时:
(tensorflow) C:\Users\Chirayushya>spyder
出现此错误:
Traceback (most recent call last):
File "C:\Users\Chirayushya\.conda\envs\tensorflow\lib\site-packages\spyder\app\mainwindow.py", line 3181, in main
mainwindow = run_spyder(app, options, args)
File "C:\Users\Chirayushya\.conda\envs\tensorflow\lib\site-packages\spyder\app\mainwindow.py", line 3057, in run_spyder
main.setup()
File "C:\Users\Chirayushya\.conda\envs\tensorflow\lib\site-packages\spyder\app\mainwindow.py", line 896, in setup
from spyder.plugins.ipythonconsole import IPythonConsole
File "C:\Users\Chirayushya\.conda\envs\tensorflow\lib\site-packages\spyder\plugins\ipythonconsole.py", line 59, in <module>
from spyder.widgets.ipythonconsole import ClientWidget
File "C:\Users\Chirayushya\.conda\envs\tensorflow\lib\site-packages\spyder\widgets\ipythonconsole\__init__.py", line 12, in <module>
from .debugging import DebuggingWidget
File "C:\Users\Chirayushya\.conda\envs\tensorflow\lib\site-packages\spyder\widgets\ipythonconsole\debugging.py", line 17, in <module>
from qtconsole.rich_jupyter_widget import RichJupyterWidget
File "C:\Users\Chirayushya\.conda\envs\tensorflow\lib\site-packages\qtconsole\rich_jupyter_widget.py", line 14, in <module>
from .jupyter_widget import JupyterWidget
File "C:\Users\Chirayushya\.conda\envs\tensorflow\lib\site-packages\qtconsole\jupyter_widget.py", line 20, in <module>
from IPython.lib.lexers import IPythonLexer, IPython3Lexer
File "C:\Users\Chirayushya\.conda\envs\tensorflow\lib\site-packages\IPython\__init__.py", line 55, in <module>
from .terminal.embed import embed
File "C:\Users\Chirayushya\.conda\envs\tensorflow\lib\site-packages\IPython\terminal\embed.py", line 16, in <module>
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File "C:\Users\Chirayushya\.conda\envs\tensorflow\lib\site-packages\IPython\terminal\interactiveshell.py", line 22, in <module>
from prompt_toolkit.shortcuts import create_prompt_application, create_eventloop, create_prompt_layout, create_output
ImportError: cannot import name 'create_prompt_application'