1

我正在尝试从命令行运行 iPython 并得到错误:

ModuleNotFoundError: No module named 'prompt_toolkit.formatted_text'

因此,我阅读了一些建议安装特定版本的 prompt-toolkit 和 ipython 的帖子,但我得到了以下错误:

pip install prompt-toolkit==1.0.14


ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
jupyter-console 6.4.0 requires prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0, but you have prompt-toolkit 1.0.14 which is incompatible.
ipython 6.5.0 requires prompt-toolkit<2.0.0,>=1.0.15, but you have prompt-toolkit 1.0.14 which is incompatible.


pip install ipython==5.2.0

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
jupyter-console 6.4.0 requires prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0, but you have prompt-toolkit 1.0.14 which is incompatible.

但我仍然ModuleNotFoundError从上面得到。

有人可以帮助我吗?提前致谢!

4

0 回答 0