Reputation: 2920
I have already checked this question, but it is not the same as the problem I am encountering.
I just ran
C:\Users\USRNAME\Documents> conda update conda
and the command ran without any error. Then I attempted to run
C:\Users\USRNAME\Documents> conda update --all
and I began to get the following error:
C:\Users\USRNAME\Documents>conda update anaconda
'C:/Program' is not recognized as an internal or external command,
operable program or batch file.
/Microsoft was unexpected at this time.
C:\Users\USRNAME\Documents>@FOR /F "delims=" %i IN ('@CALL C:/Program Files (x86)/Microsoft Visual Studio/Shared/Anaconda3_64\Scripts\conda.exe shell.cmd.exe reactivate') DO @SET "_TEMP_SCRIPT_PATH=%i"
C:\Users\USRNAME\Documents>
This has never happened before. Usually, I am able to run conda update conda
and conda update --all
once a week without any kind of problem. Any help in solving the problem would be appreciated.
Upvotes: 2
Views: 1049
Reputation: 2697
You need to specify a certain environment, like:
conda update -n myenv --all
Upvotes: 1