Some of you here might direct me to other questions on this site such as
- Error : Failed to create temp directory "C:\Users\user\AppData\Local\Temp\conda-<RANDOM>\"
- What is the difference between Anaconda Prompt and Anaconda Powershell Prompt?
But, I have a different problem. I reinstalled Miniconda on my C drive for the reason that might fix the problem. The problem is the "Failed to create temp directory" every time I open the Anaconda Powershell Prompt.
I have already followed some steps provided on the questions, on GitHub, and anywhere online. But, what worked for me (in the meantime) is the solution provided by Sir Ronil on the question (1) above which happened to be the answer also provided on GitHub (https://github.com/conda/conda/issues/9757).
However, when I opened Anaconda Powershell Prompt, it worked but has other problems with it. Anyways, I disregard it knowing it will work on the other prompt (cause they are the same right?) but when I opened Anaconda Prompt (CMD), the failed to create directory problem still exists. See the prompt below.
ANACONDA POWERSHELL PROMPT:
Warning: PowerShell detected that you might be using a screen reader and has disabled PSReadline
for compatibility purposes. If you want to re-enable it, run 'Import-Module PS Readline'.
(base) PS C:\Users\king>conda
usage: conda-script.py [-h] [-V] command ...
ANACONDA PROMPT (CMD):
Failed to create temp directory "C:\temp\conda-<RANDOM>\"
C:\Users\king>conda
'conda' is not recognized as an internal or external command, operable program, or batch file.
Although Anaconda Powershell Prompt is working (I mean it "somehow fixed" the failed to create directory problem) it still fails to perform some codes because of errors. But, I would not discuss it here to focus on the directory problem. See the code below.
(base) PS C:\Users\king> conda install ipykernel
CondaError: Error encountered while attempting to create cache directory.
Directory: C:\Users\king\AppData\Local\conda\conda\Cache\notices
Exception: [WinEror 2] The system cannot find the file specified: 'C:\\Users\\king\\AppData\\Local\\conda\\conda\\Cache'
I want is to make this Miniconda work on my device and install the kernels I need for VSCode to run and test our program.
- Why it has different errors? Why it works on the other and the other did not?
- How can I fix this? or any way to install the kernels and run the Jupyter on VSCode?