当前位置:网站首页>pip-script.py‘ is not present Verifying transaction: failed
pip-script.py‘ is not present Verifying transaction: failed
2022-07-28 03:25:00 【AI视觉网奇】
目录
两个错:
pip install numpy报错:
pip-script.py' is not present
解决方法:
conda install pip,但是这个又报错:
Verifying transaction: failed
成功的解决方法:
conda update --force conda
有兴趣看下面求索过程
Conda更新或安装包时出现Verifying transaction: failed+RemoveError的解决方法_土Bo鼠的博客-CSDN博客
为了图方便,想使用conda install nb_conda来让jupyter notebook或jupyter lab自动生成对应所有虚拟环境的Kernal。
conda install nb_conda
不料,懒人没做成,安装失败,最末尾显示:
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: failed
RemoveError: 'requests' is a dependency of conda and cannot be removed from
conda's operating environment.
RemoveError: 'setuptools' is a dependency of conda and cannot be removed from
conda's operating environment.
意思是无法删除一些库,这个时候其实用下面这个方法可以绕开这个问题:在每个虚拟环境中依次执行:
conda install ipykernel
python -m ipykernel install --name my(在文件夹里的名称) --display-name my(想在jupyter显示名称)
这样就添加了核,在C:\ProgramData\jupyter\kernels(具体看添加核时的说明)路径下其实可以看到你添加的所有核的细节。
但是我没懒成还是不服!继续解决RemoveError的问题,直到找到了Github讨论,里面讨论得非常激烈,主要问题就是需要进行conda的更新:
conda update conda
但是在base里还是会出错,仍显示RemoveError,再看到说要退出所有虚拟环境再更新,使用下面命令:
conda deactivate
conda update conda
还是不成,问题依旧。最后!看到这个救星:
使用:(注意!一定要回到base环境执行,不然....就看这篇博客解决吧:anaconda装环境遇到无法定位程序输入点OPENSSL_sk_new_reserve……问题)
conda update --force conda
成功更新conda!至此,再进入base环境做你想做的事吧!
对于conda install nb_conda我还有想说的,因为执行后还是有问题,还是没有懒对!
执行后jupyter lab并没有自动识别出所有虚拟环境,jupyter notebook也有问题,真是让人揪心!最后显示了些这个:
这和另一篇博客对应上了,他给出了解决方案:jupyter-lab识别anaconda虚拟环境
# 先
conda install nb_conda ipykernel
# 激活某个环境后运行下面命令
python -m ipykernel install --name my(在文件夹里的名称) --display-name my(想在jupyter显示名称)
是不是很眼熟。。。最后就是省了在每个环境install ipykernal的步骤(但是我还是需要一个一个安装kernal好像,可能他是在全局conda install的)。啊,还是老老实实一个一个弄吧。
在每个虚拟环境中依次执行:
conda install ipykernel
python -m ipykernel install --name my(在文件夹里的名称) --display-name my(想在jupyter显示名称)
检验是否添加成功,可通过下面命令查看:
jupyter kernelspec list
————————————————
版权声明:本文为CSDN博主「土Bo鼠」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_38634125/article/details/106483214
边栏推荐
猜你喜欢

20220726汇承科技的蓝牙模块HC-05的AT命令测试

Shell:一键部署pxe

鼠标操作和响应

响应式高端网站模板源码图库素材资源下载平台源码

Summary of redis classic interview questions

The wonderful use of asemi rectifier bridge GBPC3510 in DC brush motor

Prefix-Tuning: Optimizing Continuous Prompts for Generation

Win11黑色桌面背景如何解决?

20220727使用汇承科技的蓝牙模块HC-05配对手机进行蓝牙串口的演示

2022最新Android Handler相关面试题总结
随机推荐
动态规划——474. 一和零
Detailed tutorial of one click reinstallation of win7 system
Shell编写规范和变量
Log analysis tool (Splunk)
什么是Tor?Tor浏览器更新有什么用?
一篇文章掌握Postgresql中对于日期类数据的计算和处理
VMware virtual machine network settings
[5g NR] RRC reject analysis
Prefix-Tuning: Optimizing Continuous Prompts for Generation
「运维有小邓」网络设备监控
如何让外网访问内网IP(esp8266网页使用)
Assembly method of golang Gorm query arbitrary fields
Version compatibility issues
Mouse operation and response
收藏|0 基础开源数据可视化平台 FlyFish 大屏开发指南
4天Excel实战训练营,0.01元特惠仅三天,赠200套学习资料包
203.移除链表元素
Digital economy has become the biggest attraction
verticle-align行内元素垂直居中对齐
695. 岛屿的最大面积