-1

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.

talonmies
  • 70,661
  • 34
  • 192
  • 269
JustRio
  • 3
  • 2
  • What is the GPU model? What is your OS? Have you installed [CudaToolKit](https://developer.nvidia.com/cuda-toolkit-archive) and [cudNN](https://developer.nvidia.com/rdp/cudnn-archive). Also try to run the ```nvidia-smi``` command. Also check if cuda path is added to environment variables. – saad_saeed Feb 01 '23 at 14:17
  • yes I have downloaded the latest versions of cudnn and cuda on my machine and added them to environment variable on path but still not wokring and I have tried to run nvidia-smi and nvcc and both works fine – JustRio Feb 01 '23 at 17:13
  • I have windows 10 forgot to say that and my gpu is gtx 1660 super – JustRio Feb 01 '23 at 17:35

1 Answers1

0

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.

I taken the solution from here and here.

Anas Tiour
  • 1,344
  • 3
  • 17
  • 33
Bryzol
  • 16
  • 2
  • Thank you so much it worked and I was able to download cudatoolkit and cudnn, but sadly still not detecting my gpu – JustRio Feb 11 '23 at 16:53