Skip to content

Instantly share code, notes, and snippets.

@iqiancheng
Created January 3, 2025 07:44
Show Gist options
  • Save iqiancheng/ea0393ea5d50c56653a2ca99b3805c5d to your computer and use it in GitHub Desktop.
Save iqiancheng/ea0393ea5d50c56653a2ca99b3805c5d to your computer and use it in GitHub Desktop.
一个 shell 脚本来一次性配置这些 conda 设置
#!/bin/bash
# Script to configure conda settings
echo "Starting conda configuration..."
# Set proxy servers
conda config --set proxy_servers.http http://127.0.0.1:7890
conda config --set proxy_servers.https http://127.0.0.1:7890
# Set default channel
conda config --set channels defaults
# Disable error reporting
conda config --set report_errors false
# Disable SSL verification
conda config --set ssl_verify false
# Verify settings
echo -e "\nCurrent conda configuration:"
conda config --show | grep -E "proxy|channels|report_errors|ssl_verify"
echo -e "\nConfiguration completed!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment