在jupyter安装包的方法: 在pip install -[Package]前加上一个!即可,比如想要使用pip install命令安装matplotlib包,直接在Jupyter notebook中输入: ! pip install matplotlib 就会看到In[ ]中的数字变成了 * : In [*] !pip install matplotlib 这意味着这段代码正在运行中。稍等片刻就好啦。 相关文章教程推荐:jupyter教程