Windows10下Anaconda(Python3.7)安装python-igraph遇代理错误求助
Hey, that 407 Proxy Authentication error you're hitting is super common in corporate or restricted network setups—it means Conda isn't sending the right credentials to your network's proxy server. Let's walk through the fixes that usually work:
1. Temporary Proxy Configuration (One-Time Use)
Before running your conda install command, set the proxy environment variables in your command prompt first. Replace the placeholders with your actual proxy details:
set HTTP_PROXY=http://your_username:your_password@proxy_host:proxy_port set HTTPS_PROXY=http://your_username:your_password@proxy_host:proxy_port
Then run your install command as usual:
conda install -c marufr python-igraph
2. Permanent Proxy Setup (Save to Conda Config)
If you don't want to set the proxy every time, add it to your Conda config file:
- Find or create the
.condarcfile inC:\Users\YourUsername\.condarc(if it doesn't exist, just make a new text file and rename it to.condarc). - Open it with Notepad and paste this (replace with your proxy info):
proxy_servers: http: http://your_username:your_password@proxy_host:proxy_port https: http://your_username:your_password@proxy_host:proxy_port
- Save the file, close it, and retry the install command.
3. Handle NTLM Proxy (Common in Enterprise Domains)
If your company uses NTLM authentication (super common in domain networks), plain username/password might not work. Try these:
- Install the
conda-verifypackage first (it helps with proxy auth in some cases):conda install conda-verify - Or use a tool like
cntlmto act as a middleman between Conda and your corporate proxy—you'll configure cntlm with your domain credentials, then point Conda to cntlm's local port.
4. Bypass Proxy (If Allowed)
If your network lets you access Anaconda's repo directly without a proxy, clear the proxy variables first:
set HTTP_PROXY= set HTTPS_PROXY=
Then run the install command again.
Quick tip: If all else fails, you can download the python-igraph package directly from the marufr Anaconda channel as an offline
.tar.bz2file, then install it with:conda install path/to/your/downloaded/package.tar.bz2
内容的提问来源于stack exchange,提问作者Vikram Nain

