conda returns 'Solving environment: failed'

后端 未结 8 1854
孤城傲影
孤城傲影 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)
      
    0 讨论(0)
  • 2020-12-15 05:43

    I have the same issue, I just fixed it by

    1.uninstall the anaconda and download latest version

    2.create a new environment and try installing packages in that environment

    0 讨论(0)
提交回复
热议问题