Error : Failed to create temp directory "C:\Users\user\AppData\Local\Temp\conda-<RANDOM>\"
It is due to a bug from conda developers. The bug is the temp path is having names with spaces, so to overcome please reassign the Env Variables TEMP, TMP. (for windows)
- go to environment variables
- In "User Variables for " section look for TEMP, TMP
- double click on TMP and in "variable value", type "C:\conda_tmp"
- similarly do it for TEMP
- close env variables section
- Restart the anaconda prompt, the error should vanish