小码问答,有问必答!

2021-01-18 12:12

ModuleNotFoundError: No module named 'IPython'

2021-01-18 12:12 回答了这个问题

在使用百度飞桨PaddlePaddle开发测试时发生这个错误


没有安装IPython导致

使用pip安装

pip install ipython



ipython是一个python的交互式shell,比默认的python shell好用得多,支持变量自动补全,自动缩进,支持bash shell命令,内置了许多很有用的功能和函数。学习ipython将会让我们以一种更高的效率来使用python。同时它也是利用Python进行科学计算和交互可视化的一个最佳的平台。

IPython提供了两个主要的组件:

1.一个强大的python交互式shell 
2.供Jupyter notebooks使用的一个Jupyter内核(IPython notebook)

IPython的主要功能如下:

1.运行ipython控制台 
2.使用ipython作为系统shell 
3.使用历史输入(history) 
4.Tab补全 
5.使用%run命令运行脚本 
6.使用%timeit命令快速测量时间 
7.使用%pdb命令快速debug 
8.使用pylab进行交互计算 
9.使用IPython Notebook


0条评论

我要评论