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
的那一行,成功解決!