InvalidVersionSpecError: Invalid version spec: =2.7


xyj@minecraft:~$ conda install numpy
Solving environment: failed

InvalidVersionSpecError: Invalid version spec: =2.7

 

最近使用conda遇到了报错,发现conda的issues有人提出了这个问题:https://github.com/conda/conda/issues/10618

今天终于有了回复了说:I personally solved it by deleting the line conda-forge inside the .condarc config file and by not using conda-forge while installing packages/new envs. Hope it helps someone.

 

按照这个方法,编辑用户目录下的.condarc  ( 例如windows就是:C:\Users\admin\.condarc ,Linux一般是~/.condarc

删除带有:conda-forge 的那一行,成功解决!

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM