瞅瞅
https://blog.csdn.net/weixin_39585934/article/details/90384019
jupyter 里跑 `pip install ipython -i https://pypi.tuna.tsinghua.edu.cn/simple
最简单的方法,在jupyter里面 !pip install ipython
这个警告说你的环境没激活嗳,是否尝试激活了环境再进入jupyter
报错:ImportError: No module named IPython
检查是否安装:ipython --version
提示:The program 'ipython' is currently not installed. You can install it by typing: sudo apt install ipython
按照提示安装:sudo apt install ipython
完美解决!
jupyter notebook 本身就是以网页的形式来运行代码,方便随时输出打印中间结果,ipython 也是以交互的形式来运行代码,跟python的命令行相比,有补全提醒,更加方便,jupyter和ipython都是单独来使用的,题主是不是搞混了
说明你没有这个包,npm install ipython试试
ipython 不是用来import的
虽然好久没用了,但导入IPython时好像“IP”得大写,也就是
import IPython
不知道是不是,反正好像我也踩过坑。