直接输入:
pip install jupyter_contrib_nbextensions
或:python -m pip install jupyter_contrib_nbextensions(效果一样)
添加源
连接超时,下载不了安装包
这是默认的pip源的问题,我们可以使用国内的镜像
这里放一些国内的一些pip源(便于日后使用):
阿里云 :http://mirrors.aliyun.com/pypi/simple/
中国科技大学: https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) :http://pypi.douban.com/simple/
清华大学 :https://pypi.tuna.tsinghua.edu.cn/simple/
使用方法:在命令后面直接 加 -i 在加相应的 url
pip install jupyter_contrib_nbextensions -i https://pypi.mirrors.ustc.edu.cn/simple/
若不受信任
如果还是报错,有可能是别的原因比如:位于pypi.douban.com的存储库不是受信任的或安全的主机,正在被忽略。
则要求在命令后补