记录自己遇到的问题
Anaconda在非base环境中安装包出现Conda.core.link:_execute(699)错误解决方法。
在安装包的过程中,报
ERROR conda.core.link:_execute(699): An error occurred while installing package 'conda-forge::cudatoolkit-11.2.2-h7d7167e_12'.
Rolling back transaction: done
LinkError: post-link script failed for package conda-forge::cudatoolkit-11.2.2-h7d7167e_12
location of failed script: D:\Users\sunyq\anaconda3\envs\stssai\Scripts\.cudatoolkit-post-link.bat
解决方案:
1
环境路径问题,可在环境变量的系统变量Path中添加下面内容:
%SystemRoot%\system32
2清理conda缓存
conda clean -a