版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u012151283/article/details/54565467 </div>
<div id="content_views" class="markdown_views prism-atom-one-dark">
<!-- flowchart 箭头图标 勿删 -->
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"><path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path></svg>
<h1 id="pip-install-参数"><a name="t0"></a>pip install 参数</h1>
安装指定源pip install -i https://pypi.douban.com/simple package name
升级pip install --upgrade package
jupyter notebook 添加 kernel
参考资料:
Jupyter增加内核
add python3 kernel to jupyter
这里以在python2环境下的notebook添加python3 kernel为例,
首先,确保python3环境下安装了ipykernel
pip3 install ipykernel
然后在python3的python.exe所在目录下执行 python -m ipykernel install
可以添加命令 --name kernelname
为kernel指定名字
查看jupyter notebook kernel
使用命令jupyter kernelspec list
可以查看当前的kernel
删除notebook kernel
使用命令jupyter kernelspec remove kernelname