执行conda update conda命令导致Python崩溃,寻求解决方案
conda update conda (Conda 4.5.2, Python 3.6.3) Hey there, sorry to hear you're stuck with this frustrating Python crash when trying to update conda—let's walk through some targeted fixes that might not have come up in the GitHub issues you looked into.
Try These Steps in Order:
Run your terminal as Administrator
Permission restrictions often cause unexpected crashes during conda's system-level updates. Right-click your Anaconda Prompt or Command Prompt, select Run as administrator, then re-runconda update conda.Force-install a specific stable conda version
Jumping directly from 4.5.2 to the latest release might hit compatibility snags with your Python 3.6.3 environment. Instead, try installing a known-stable version that plays nice with Python 3.6:conda install conda=4.10.3This version is well-tested with Python 3.6 and should avoid the crash path you're encountering.
Clear conda's cached files
Corrupted cache packages or metadata can trigger runtime crashes. Run this command to wipe all cached content:conda clean --allConfirm the cleanup when prompted, then attempt the conda update again.
Temporarily disable antivirus/security software
Some Windows security tools flag conda's file modification operations as suspicious and interfere with Python's runtime. Disable real-time protection temporarily, run the update command, then re-enable your security software right after.Reinstall conda manually (last resort)
If none of the above work, grab a Miniconda installer matching your Python 3.6.3 environment (e.g.,Miniconda3-py36_4.10.3-Windows-x86_64.exe). Run the installer, choose to install for just you to avoid permission conflicts, and select the option to replace your existing conda installation. Be sure to back up important environments first withconda env export > environment.yml.
If you're still hitting issues, check the conda log files located at C:\Users\<YourUsername>\.conda\logs—sharing specific error lines from those logs could help narrow down the root cause further.
内容的提问来源于stack exchange,提问作者Foad S. Farimani

