jupyter notebook添加conda 的环境内核

打开想要添加的conda环境 conda activate xxx

安装ipykernel

pip install ipykernel -i https://pypi.tuna.tsinghua.edu.cn/simple

通过ipykernel为jupyter添加xxx环境 名字叫做yyy

python -m ipykernel install --name yyy

如果报错:cannot import name “AsyncGenerator”

#降低prompt-toolkit版本
pip install --upgrade prompt-toolkit==2.0.1

如果报错:Permission denied: '/usr/local/share/jupyter',是因为权限不够,加上--user即可

 python -m ipykernel install --user --name yyy

然后查看jupyter 内核,看看有没有yyy,有的话就成功了

 jupyter kernelspec list

需要删除的话, jupyter 删除内核

jupyter kernelspec remove yyy

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值