解决pip install jupyter_contrib_nbextensions问题

执行

pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
报错信息
  Could not find a version that satisfies the requirement nbextension (from versions: )
No matching distribution found for nbextension
You are using pip version 10.0.1, however version 22.2.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
输入
python -m pip install --upgrade pip
报错信息
twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed.
jupyter-console 5.2.0 has requirement prompt-toolkit<2.0.0,>=1.0.0, but you'll have prompt-toolkit 3.0.19 which is incompatible.
Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: 'c:\\programdata\\anaconda3\\lib\\site-packages\\pip\\_internal\\basecommand.py'
Consider using the `--user` option or check the permissions.
-----------------------解决-------------------------------------------------------------------------------------
1. 在 install 后面加上--user,如下面语句

python -m pip install --user --upgrade pip

(15条消息) 【Python】Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。_哟米 2000的博客-CSDN博客

2.运行

pip3 install --upgrade prompt-toolkit==2.0.4

安装运行jupyter notebook时报错:ModuleNotFoundError: No module named 'prompt_toolkit.formatted_text' - 青春叛逆者 - 博客园 (cnblogs.com)

3.先卸载扩展包

pip uninstall jupyter_contrib_nbextensions
pip uninstall jupyter_nbextensions_configurator

安装nbextensions

pip install jupyter_contrib_nbextensions

安装 javascript and css files

jupyter contrib nbextension install --user

4安装configurator

(15条消息) jupyter-contrib-nbextensions的安装问题_xcj~的博客-CSDN博客_nbextensions安装出现错误

---------------------------------------------

太小白完全不懂什么意思,感谢大家的分享让问题能够解决。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值