I was trying to download cudatoolkit on my environment variable on anaconda using this command (conda install -c conda-forge cudatoolkit=11.2) and when it finishes downloading and start extracting this error shows: """ Executing transaction: - "By downloading and using the CUDA Toolkit conda packages, you accept the terms and conditions of the CUDA End User License Agreement (EULA): https://docs.nvidia.com/cuda/eula/index.html"
done ERROR conda.core.link:_execute(745): An error occurred while installing package 'conda-forge::cudatoolkit-11.2.2-h933977f_10'. Rolling back transaction: done
LinkError: post-link script failed for package conda-forge::cudatoolkit-11.2.2-h933977f_10 location of failed script: C:\ProgramData\Anaconda3\envs\tf_gpu\Scripts.cudatoolkit-post-link.bat ==> script messages <== "By downloading and using the CUDA Toolkit conda packages, you accept the terms and conditions of the CUDA End User License Agreement (EULA): https://docs.nvidia.com/cuda/eula/index.html"
==> script output <== stdout: stderr: 'chcp' is not recognized as an internal or external command, operable program or batch file. 'chcp' is not recognized as an internal or external command, operable program or batch file. 'chcp' is not recognized as an internal or external command, operable program or batch file.
return code: 1
() """
I have been trying for days to use my gpu with tensorflow but I couldn't.
I had the same problem with other packages, and below worked for me.
The main problem is with chcp
is not recognized as an internal or external command" as Conda doesn't have access to chcp
command.
SOLUTION:
Add to your PATH environment variable: C:\Windows\System32
and %SystemRoot%\System32\Wbem
so the command 'chcp' can work form wherever.
You can check if chcp
command works, by opening command line (not as administrator) and checking if command where chcp
gives you some result.