macOS miniforge3 conda command failure solution

After installing the codna of Miniforge3 on macOS, it has been used normally, but later with the macOS update, the commands of codna can no longer be used normally.
Most of the problems mentioned in different online, online conda problems are most PATH configuration issues, their problems mainly in conda --versionnon-responsive. But my question is really conda --versionto have a normal feedback, but perform conda env list conda infono return, if executed ~/miniforge3/bin/conda infowill return results killed.
Check Issues on github and found similar problems.

Xcode command-line tools upgrade

It is mentioned in Github Issues that updating xcode clt can solve the problem, the following is the clt upgrade command:

xcode-select --install

After the installation is complete, I found that my problem has not been resolved, and it has not been resolved after restarting.

Reinstall Miniforge3

Since the problem cannot be solved, then try the following commonly used method-reinstall.
Conda does not have an uninstall command, it needs to delete related files. The specific operations are as follows:

rm -rf ~/miniforge3
rm -rf .conda
rm -rf .condarc

After completion, enter .zshrcand delete the PATH configuration of the end configuration miniforge3.
Next, download the version of the corresponding system at https://github.com/conda-forge/miniforge .
Then execute the installation command:

bash Miniforge3-MacOSX-arm64.sh

Follow the prompts to complete the installation.

After the reinstallation is complete, use the conda command to test

conda --version
>> conda 4.9.2
conda info 
>> ... (略去正常显示)

At this point, the problem of no response to the conda command is solved.

Guess you like

Origin blog.csdn.net/weixin_37272286/article/details/115303269