[Problem-solving] Anaconda Rom server, "the server is started, please wait", the error message: ImportError: can not import name 'create_prompt_application'

Roughly as follows:

About a month ago jupyter notebook or good, just started going to run the program code, or show is running, as follows:

But it has a display server is started, please wait, as shown below:

 

In another moment it stopped directly, as shown below:

I later tested Python environment, using Pycharm tests, which lead directly to the anaconda environment so that the environment is no problem.

And then after I started jupyter notebook with the command line only to find the problem and see the error message, as shown below:

Finally found the culprit, and the reason is: ImportError: CAN not Import name 'create_prompt_application'

The investigation is prompt-toolkit version does not, so you have to re-install a version,

pip install prompt-toolkit==1.0.15 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

Installation follows:

Then test whether the run, as shown below:

Finally showed the service is ready, the following statement is the color of the program, as shown below:

 

 At this point, problem solving, successful operation, as follows:

Thoughts: Before use is no problem, may be used Pycharm introduced Anaconda environment, leading to renewed prompt-toolkit, changed the version is not compatible with the current jupyter.

  • Reference Bowen: https: //www.cnblogs.com/nuochengze/p/12631722.html

 

Guess you like

Origin www.cnblogs.com/shixinzei/p/12633234.html