天天看点

win10下conda安装onnx操作(踩坑记录)

命令行输入

conda install -c conda-forge onnx
           

出现以下错误

verifying transaction:failed
RemoveError: 'setuptools' is a dependency of conda and cannot be removed from conda
RemoveError: 'requests' is a dependency of conda and cannot be removed from conda's operating 
           

经过一番查找,几天尝试

使用更新conda操作

因为更新操作缓慢

期间更改了清华镜像源

尝试方法一

condau pdate conda
           

报同样错

尝试方法二

conda update -force conda
           

更新成功,没有报错

继续第一步

conda install -c conda-forge onnx
           

成功,解决win+caonda的坑

win10下conda安装onnx操作(踩坑记录)

总结

1、conda install -c conda-forge onnx

2、未尝试方法

https://superuser.com/questions/1402260/error-when-updating-conda-packages-removeerror-setuptools-is-a-dependency-of

使用以下命令行

conda install -c anaconda setuptools