怎么在jupyter安装包?

图片[1]-怎么在jupyter安装包?-uusu优素-乐高,模型,3d打印,编程

在jupyter安装包的方法:

在pip install -[Package]前加上一个!即可,比如想要使用pip install命令安装matplotlib包,直接在Jupyter notebook中输入:

!pipinstallmatplotlib

就会看到In[ ]中的数字变成了*:

In[*]!pipinstallmatplotlib

这意味着这段代码正在运行中。稍等片刻就好啦。

原文来自:https://www.py.cn
© 版权声明
THE END
喜欢就支持一下吧
点赞12 分享