conda returns 'Solving environment: failed'

后端 未结 8 1895
孤城傲影
孤城傲影 2020-12-15 05:24

I can not use the conda utility anymore. I use it regularly since years but lately, since I installed the python module scp (with the command conda instal

8条回答
  •  渐次进展
    2020-12-15 05:43

    thank you, that works ! in case the link grows old, here is the simplified copy:

    1. Navigate to your conda base environment, as given by conda info.
    2. Open the file lib/pythonX.Y/site-packages/conda/gateways/connection/init.py. Where X.Y is the python major-minor version.
    3. Replace the function 'should_bypass_proxies_patched' with :

      def should_bypass_proxies_patched(should_bypass_proxies_func, url, no_proxy=None):
          if url.startswith("file://"):
              return True
          try:
              return should_bypass_proxies_func(url, no_proxy)
          except TypeError:
              return should_bypass_proxies_func(url)
      

提交回复
热议问题