Jupyter notebook 中使用pip install安装第三方Python包
使用方式:在pip install -[Package]前加上一个!即可,比如想要使用pip install命令安装matplotlib包,直接在Jupyter notebook中输入:! pip install matplotlib就是说从Jupyter notebook(ipython)里面是不能直接使用pip install命令的,在前面加一个! 相当于告诉Jupyter noteb...
·
使用方式:
在pip install -[Package]前加上一个!即可,比如想要使用pip install命令安装matplotlib包,直接在Jupyter notebook中输入:
! pip install matplotlib
就是说从Jupyter notebook(ipython)里面是不能直接使用pip install命令的,在前面加一个! 相当于告诉Jupyter notebook把这条命令当做shell命令来执行(如果接触过Linux的人应该会很熟悉).
更多推荐




所有评论(0)