Conda: can't install anything using conda, it hangs in solving environment

Created on 31 Dec 2018  ·  88Comments  ·  Source: conda/conda

Hello,

I don't seem to be able to install anything using conda. It hangs in "solving environment".

I tried:
conda install -c anaconda pip
conda install conda-build
conda update conda
conda install c- anaconda pandas

The all make conda try and resolve the environment until it crashes.

conda config --show-sources

gives:

channels:

I used to have conda-forge there, but I removed it after reading some threads. Either with or without I have the same problems.

I have conda 4.5.2 on windows.

Can you please help?

tag-solver tag-solver_performance type-bug

Most helpful comment

As suggested by @solegalli, I was able to fix it by removing the conda-forge channel. To see if you have conda-forge installed, you can open your configuration file in .condarc or just enter conda config --get channels at your conda prompt. I removed the conda-forge line from .condarc, and I'm no longer getting the error. You can also enter conda config --remove channels conda-forge to remove it.

Strangely, after removing the channel, I've added it back and the error has not returned.

Edit: Note I did uninstall anaconda yesterday before trying this today, so there is a chance that was important. But the error did not disappear until I removed the channel.

All 88 comments

Hi, I appear to be having the same issue. conda was working in early December and I have not updated it since.

Steps to reproduce

  1. conda install python
  2. obtain the following error message
(base) C:\Users\nmacr>conda install python
Solving environment: failed

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 216, in _load
        mod_etag_headers.get('_mod'))
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 553, in fetch_repodata_remote_request
        raise Response304ContentUnchanged()
    conda.core.subdir_data.Response304ContentUnchanged

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\exceptions.py", line 819, in __call__
        return func(*args, **kwargs)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\cli\main.py", line 78, in _main
        exit_code = do_call(args, p)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\cli\conda_argparse.py", line 77, in do_call
        exit_code = getattr(module, func_name)(args, parser)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\cli\main_install.py", line 11, in execute
        install(args, parser, 'install')
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\cli\install.py", line 235, in install
        force_reinstall=context.force,
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\solve.py", line 505, in solve_for_transaction
        force_remove, force_reinstall)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\solve.py", line 438, in solve_for_diff
        final_precs = self.solve_final_state(deps_modifier, prune, ignore_pinned, force_remove)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\solve.py", line 179, in solve_final_state
        index, r = self._prepare(prepared_specs)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\solve.py", line 560, in _prepare
        self.subdirs, prepared_specs)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\index.py", line 215, in get_reduced_index
        new_records = query_all(spec)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\index.py", line 184, in query_all
        return tuple(concat(future.result() for future in as_completed(futures)))
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 94, in query
        self.load()
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 148, in load
        _internal_state = self._load()
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 222, in _load
        mod_etag_headers.get('_mod'))
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 269, in _read_local_repdata
        _internal_state = self._process_raw_repodata_str(raw_repodata_str)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 353, in _process_raw_repodata_str
        package_record = PackageRecord(**info)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\_vendor\auxlib\entity.py", line 719, in __call__
        instance = super(EntityType, cls).__call__(*args, **kwargs)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\_vendor\auxlib\entity.py", line 736, in __init__
        setattr(self, key, kwargs[key])
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\_vendor\auxlib\entity.py", line 427, in __set__
        instance.__dict__[self.name] = self.validate(instance, self.box(instance, instance.__class__, val))
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\models\records.py", line 102, in box
        val = tuple(f for f in (ff.strip() for ff in val) if f)
    TypeError: 'NoneType' object is not iterable

`$ C:\Users\nmacr\Miniconda3\Scripts\conda install python`

  environment variables:
                 CIO_TEST=<not set>
        CONDA_DEFAULT_ENV=base
                CONDA_EXE=C:\Users\nmacr\Miniconda3\Scripts\conda.exe
             CONDA_PREFIX=C:\Users\nmacr\Miniconda3
    CONDA_PROMPT_MODIFIER=(base)
         CONDA_PYTHON_EXE=C:\Users\nmacr\Miniconda3\python.exe
               CONDA_ROOT=C:\Users\nmacr\Miniconda3
              CONDA_SHLVL=1
                 HOMEPATH=\Users\nmacr
          MOZ_PLUGIN_PATH=C:\PROGRAM FILES (X86)\FOXIT SOFTWARE\FOXIT READER\plugins\
                     PATH=C:\Users\nmacr\Miniconda3;C:\Users\nmacr\Miniconda3\Library\mingw-w64\
                          bin;C:\Users\nmacr\Miniconda3\Library\usr\bin;C:\Users\nmacr\Miniconda
                          3\Library\bin;C:\Users\nmacr\Miniconda3\Scripts;C:\Users\nmacr\Minicon
                          da3\bin;C:\Program Files\Docker\Docker\Resources\bin;C:\Program Files
                          (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\jav
                          apath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDO
                          WS\System32\WindowsPowerShell\v1.0\;C:\Python27;C:\Program
                          Files\Git\cmd;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;;C:\WINDOWS\
                          System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program
                          Files\nodejs\;C:\Program Files\Microsoft VS Code\bin;C:\Users\nmacr\Ap
                          pData\Local\Mu\bin;C:\Users\nmacr\AppData\Local\Microsoft\WindowsApps;
                          C:\Program Files\Microsoft VS
                          Code\bin;C:\Users\nmacr\AppData\Local\Box\Box Edit\;C:\Users\nmacr\App
                          Data\Local\GitHubDesktop\bin;C:\Users\nmacr\AppData\Local\Microsoft\Wi
                          ndowsApps;C:\Users\nmacr\AppData\Roaming\npm;C:\Users\nmacr\Miniconda3
                          ;C:\Users\nmacr\Miniconda3\Scripts;;C:\Users\nmacr\Miniconda3\lib\site
                          -packages\pywin32_system32;C:\Users\nmacr\Miniconda3\lib\site-
                          packages\pywin32_system32
             PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\Windows
                          PowerShell\v1.0\Modules
         PYTHONIOENCODING=1252
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : base
    active env location : C:\Users\nmacr\Miniconda3
            shell level : 1
       user config file : C:\Users\nmacr\.condarc
 populated config files : C:\Users\nmacr\.condarc
          conda version : 4.5.4
    conda-build version : not installed
         python version : 3.6.5.final.0
       base environment : C:\Users\nmacr\Miniconda3  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/win-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/win-64
                          https://repo.anaconda.com/pkgs/pro/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\nmacr\Miniconda3\pkgs
                          C:\Users\nmacr\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\nmacr\Miniconda3\envs
                          C:\Users\nmacr\AppData\Local\conda\conda\envs
                          C:\Users\nmacr\.conda\envs
               platform : win-64
             user-agent : conda/4.5.4 requests/2.18.4 CPython/3.6.5 Windows/10 Windows/10.0.17134
          administrator : False
             netrc file : None
           offline mode : False


An unexpected error has occurred. Conda has prepared the above report.
If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers?
[y/N]: 

conda info

     active environment : base
    active env location : C:\Users\nmacr\Miniconda3
            shell level : 1
       user config file : C:\Users\nmacr\.condarc
 populated config files : C:\Users\nmacr\.condarc
          conda version : 4.5.4
    conda-build version : not installed
         python version : 3.6.5.final.0
       base environment : C:\Users\nmacr\Miniconda3  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/win-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/win-64
                          https://repo.anaconda.com/pkgs/pro/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\nmacr\Miniconda3\pkgs
                          C:\Users\nmacr\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\nmacr\Miniconda3\envs
                          C:\Users\nmacr\AppData\Local\conda\conda\envs
                          C:\Users\nmacr\.conda\envs
               platform : win-64
             user-agent : conda/4.5.4 requests/2.18.4 CPython/3.6.5 Windows/10 Windows/10.0.17134
          administrator : False
             netrc file : None
           offline mode : False

conda config --show-sources

==> C:\Users\nmacr\.condarc <==
channels:
  - conda-forge
  - defaults

conda list --show-channel-urls

# packages in environment at C:\Users\nmacr\Miniconda3:
#
# Name                    Version                   Build  Channel
asn1crypto                0.24.0                   py36_0    defaults
ca-certificates           2018.03.07                    0    defaults
certifi                   2018.4.16                py36_0    defaults
cffi                      1.11.5           py36h945400d_0    defaults
chardet                   3.0.4            py36h420ce6e_1    defaults
conda                     4.5.4                    py36_0    defaults
conda-env                 2.6.0                h36134e3_1    defaults
console_shortcut          0.1.1                h6bb2dd7_3    defaults
cryptography              2.2.2            py36hfa6e2cd_0    defaults
idna                      2.6              py36h148d497_1    defaults
menuinst                  1.4.11           py36hfa6e2cd_0    defaults
openssl                   1.0.2o               h8ea7d77_0    defaults
pip                       9.0.3                    py36_0    defaults
pycosat                   0.6.3            py36h413d8a4_0    defaults
pycparser                 2.18             py36hd053e01_1    defaults
pyopenssl                 17.5.0           py36h5b7d817_0    defaults
pysocks                   1.6.8                    py36_0    defaults
python                    3.6.5                h0c2934d_0    defaults
pywin32                   223              py36hfa6e2cd_0    defaults
requests                  2.18.4           py36h4371aae_1    defaults
ruamel_yaml               0.15.35          py36hfa6e2cd_1    defaults
setuptools                39.0.1                   py36_0    defaults
six                       1.11.0           py36h4db2310_1    defaults
urllib3                   1.22             py36h276f60a_0    defaults
vc                        14                   h0510ff6_3    defaults
vs2015_runtime            14.0.25123                    3    defaults
wheel                     0.31.0                   py36_0    defaults
win_inet_pton             1.0.1            py36he67d7fd_1    defaults
wincertstore              0.2              py36h7fe50ca_0    defaults
yaml                      0.1.7                hc54c509_2    defaults

Please let me know if any additional information is required to help debug this problem.

I started having this problem today. To try to fix it, I uninstalled anaconda, and installed miniconda and am still getting the same error message as @NickMacro . E.g., when I try to update or install anything, I get the same error.

I am in Windows 10.

Output of conda info:

 active environment : base
active env location : C:\Users\Eric\Miniconda3
        shell level : 1
   user config file : C:\Users\Eric\.condarc

populated config files : C:\Users\Eric.condarc
conda version : 4.5.12
conda-build version : not installed
python version : 3.7.1.final.0
base environment : C:\Users\Eric\Miniconda3 (writable)
channel URLs : https://conda.anaconda.org/conda-forge/win-64
https://conda.anaconda.org/conda-forge/noarch
https://conda.anaconda.org/t//ramonaoptics/win-64
https://conda.anaconda.org/t//ramonaoptics/noarch
https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/win-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/win-64
https://repo.anaconda.com/pkgs/pro/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\Users\Eric\Miniconda3\pkgs
C:\Users\Eric\AppData\Localcondaconda\pkgs
envs directories : C:\Users\Eric\Miniconda3\envs
C:\Users\Eric\AppData\Localcondaconda\envs
C:\Users\Eric.conda\envs
platform : win-64
user-agent : conda/4.5.12 requests/2.21.0 CPython/3.7.1 Windows/10 Windows/10.0.17134
administrator : False
netrc file : None
offline mode : False

Output, after installing Miniconda, of conda update conda:

Solving environment: failed

ERROR REPORT

Traceback (most recent call last):
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\exceptions.py", line 819, in __call__
    return func(*args, **kwargs)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\cli\main.py", line 78, in _main
    exit_code = do_call(args, p)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\cli\conda_argparse.py", line 77, in do_call
    exit_code = getattr(module, func_name)(args, parser)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\cli\main_update.py", line 14, in execute
    install(args, parser, 'update')
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\cli\install.py", line 235, in install
    force_reinstall=context.force,
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\solve.py", line 518, in solve_for_transaction
    force_remove, force_reinstall)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\solve.py", line 451, in solve_for_diff
    final_precs = self.solve_final_state(deps_modifier, prune, ignore_pinned, force_remove)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\solve.py", line 180, in solve_final_state
    index, r = self._prepare(prepared_specs)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\solve.py", line 592, in _prepare
    self.subdirs, prepared_specs)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\index.py", line 215, in get_reduced_index
    new_records = query_all(spec)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\index.py", line 184, in query_all
    return tuple(concat(future.result() for future in as_completed(futures)))
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 95, in query
    self.load()
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 149, in load
    _internal_state = self._load()
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 218, in _load
    mod_etag_headers.get('_mod'))
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 280, in _read_local_repdata
    _internal_state = self._process_raw_repodata_str(raw_repodata_str)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 374, in _process_raw_repodata_str
    package_record = PackageRecord(**info)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\_vendor\auxlib\entity.py", line 719, in __call__
    instance = super(EntityType, cls).__call__(*args, **kwargs)
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\_vendor\auxlib\entity.py", line 736, in __init__
    setattr(self, key, kwargs[key])
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\_vendor\auxlib\entity.py", line 427, in __set__
    instance.__dict__[self.name] = self.validate(instance, self.box(instance, instance.__class__, val))
  File "C:\Users\Eric\Miniconda3\lib\site-packages\conda\models\records.py", line 102, in box
    val = tuple(f for f in (ff.strip() for ff in val) if f)
TypeError: 'NoneType' object is not iterable

$ C:\Users\Eric\Miniconda3\Scripts\conda update conda

environment variables:
CIO_TEST=
CONDA_DEFAULT_ENV=base
CONDA_EXE=C:\Users\Eric\Miniconda3\Scriptsconda.exe
CONDA_PREFIX=C:\Users\Eric\Miniconda3
CONDA_PROMPT_MODIFIER=(base)
CONDA_PYTHON_EXE=C:\Users\Eric\Miniconda3\python.exe
CONDA_ROOT=C:\Users\Eric\Miniconda3
CONDA_SHLVL=1
HOMEPATH=\Users\Eric
PATH=C:\Users\Eric\Miniconda3;C:\Users\Eric\Miniconda3\Library\mingw-w64\bi
n;C:\Users\Eric\Miniconda3\Library\usr\bin;C:\Users\Eric\Miniconda3\Li
brary\bin;C:\Users\Eric\Miniconda3\Scripts;C:\Users\Eric\Miniconda3\bi
n;C:\Program Files (x86)\Intel\Intel(R) Management Engine
Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Com
ponents\iCLS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSS
H\;C:\Program Files (x86)\Intel\Intel(R) Management Engine
Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine
Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine
Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine
Components\IPT;C:\Program Files (x86)\NVIDIA
Corporation\PhysX\Common;C:\Program
Files\MATLAB\R2018b\runtime\win64;C:\Program Files\MATLAB\R2018b\bin;C
:\Users\Eric\AppData\Local\Microsoft\WindowsApps;C:\Users\Eric\AppData
\Local\atom\bin
PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\Windows
PowerShell\v1.0\Modules
PYTHONIOENCODING=1252
REQUESTS_CA_BUNDLE=
SSL_CERT_FILE=

I am having the same problem as Eric and Nick. Removing conda-forge from my channels appears to be working.

Having the same issue. conda install -c conda-forge some_pkgs does not work either.

I am having the same problem as Eric and Nick. Removing conda-forge from my channels appears to be working.

I observe the same with conda 4.5, although no issue with conda 4.3.

Also having the same issue. I'm on Windows 7 and uninstalled and reinstalled Anaconda 3.7, version 4.5.12, no luck.

'(base) C:\Users\mnorrick>conda update conda
Solving environment: failed

Traceback (most recent call last):
  File "C:\Users\mnorrick\anaconda3\lib\site-packages\conda\exceptions.py",

line 819, in __call__
return func(args, kwargs)
File "C:\Users\mnorrick\anaconda3\lib\site-packagesconda\cli\main.py", li
ne 78, in _main
exit_code = do_call(args, p)
File "C:\Users\mnorrick\anaconda3\lib\site-packagesconda\cliconda_argpar
se.py", line 77, in do_call
exit_code = getattr(module, func_name)(args, parser)
File "C:\Users\mnorrick\anaconda3\lib\site-packagesconda\cli\main_update.
py", line 14, in execute
install(args, parser, 'update')
File "C:\Users\mnorrick\anaconda3\lib\site-packagesconda\cli\install.py",
line 235, in install
force_reinstall=context.force,
File "C:\Users\mnorrick\anaconda3\lib\site-packagesconda\core\solve.py",
line 518, in solve_for_transaction
force_remove, force_reinstall)
File "C:\Users\mnorrick\anaconda3\lib\site-packagesconda\core\solve.py",
line 451, in solve_for_diff
final_precs = self.solve_final_state(deps_modifier, prune, ignore_pinned
, force_remove)
File "C:\Users\mnorrick\anaconda3\lib\site-packagesconda\core\solve.py",
line 180, in solve_final_state
index, r = self._prepare(prepared_specs)
File "C:\Users\mnorrick\anaconda3\lib\site-packagesconda\core\solve.py",
line 592, in _prepare
self.subdirs, prepared_specs)
File "C:\Users\mnorrick\anaconda3\lib\site-packagesconda\core\index.py",
line 215, in get_reduced_index
new_records = query_all(spec)
File "C:\Users\mnorrick\anaconda3\lib\site-packagesconda\core\index.py",
line 184, in query_all
return tuple(concat(future.result() for future in as_completed(futures))
)
File "C:\Users\mnorrick\anaconda3\lib\site-packagesconda\core\subdir_data
.py", line 95, in query
self.load()
File "C:\Users\mnorrick\anaconda3\lib\site-packagesconda\core\subdir_data
.py", line 149, in load
_internal_state = self._load()
File "C:\Users\mnorrick\anaconda3\lib\site-packagesconda\core\subdir_data
.py", line 218, in _load
mod_etag_headers.get('_mod'))
File "C:\Users\mnorrick\anaconda3\lib\site-packagesconda\core\subdir_data
.py", line 280, in _read_local_repdata
_internal_state = self._process_raw_repodata_str(raw_repodata_str)
File "C:\Users\mnorrick\anaconda3\lib\site-packagesconda\core\subdir_data
.py", line 374, in _process_raw_repodata_str
package_record = PackageRecord(
info)
File "C:\Users\mnorrick\anaconda3\lib\site-packagesconda_vendor\auxlib\e
ntity.py", line 719, in __call__
instance = super(EntityType, cls).__call__(
args, **kwargs)
File "C:\Users\mnorrick\anaconda3\lib\site-packagesconda_vendor\auxlib\e
ntity.py", line 736, in __init__
setattr(self, key, kwargs[key])
File "C:\Users\mnorrick\anaconda3\lib\site-packagesconda_vendor\auxlib\e
ntity.py", line 427, in __set__
instance.__dict__[self.name] = self.validate(instance, self.box(instance
, instance.__class__, val))
File "C:\Users\mnorrick\anaconda3\lib\site-packagesconda\models\records.p
y", line 102, in box
val = tuple(f for f in (ff.strip() for ff in val) if f)
TypeError: 'NoneType' object is not iterable

$ C:\Users\mnorrick\anaconda3\Scripts\conda update conda

environment variables:
CIO_TEST=
CONDA_DEFAULT_ENV=base
CONDA_EXE=C:\Users\mnorrick\anaconda3\Scriptsconda.exe
CONDA_PREFIX=C:\Users\mnorrick\anaconda3
CONDA_PROMPT_MODIFIER=(base)
CONDA_PYTHON_EXE=C:\Users\mnorrick\anaconda3\python.exe
CONDA_ROOT=C:\Users\mnorrick\anaconda3
CONDA_SHLVL=1
HOMEPATH=\Users\mnorrick
PATH=C:\Users\mnorrick\anaconda3;C:\Users\mnorrick\anaconda
3\Library\mingw-
w64\bin;C:\Users\mnorrick\anaconda3\Library\usr\bin;C:
\Users\mnorrick\
anaconda3\Library\bin;C:\Users\mnorrick\anaconda3\Scri
pts;C:\Users\mno
rrick\anaconda3\bin;C:\ProgramData\Oracle\Java\javapat
h;C:\Program
Files (x86)\Common
Files\Oracle\Java\javapath;C:\instantclient_12_2;C:\Pr
ogram
Files\dotnet\;C:\ProgramData\mnorrick\GitHubDesktop\bi
n
PSMODULEPATH=C:\windows\system32\WindowsPowerShell\v1.0\Modules\
PYTHONIOENCODING=1252
REQUESTS_CA_BUNDLE=
SSL_CERT_FILE=

 active environment : base
active env location : C:\Users\mnorrick\anaconda3
        shell level : 1
   user config file : C:\Users\mnorrick\.condarc

populated config files : C:\Users\mnorrick.condarc
conda version : 4.5.12
conda-build version : 3.17.6
python version : 3.7.1.final.0
base environment : C:\Users\mnorrick\anaconda3 (writable)
channel URLs : https://conda.anaconda.org/conda-forge/win-64
https://conda.anaconda.org/conda-forge/noarch
https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/win-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/win-64
https://repo.anaconda.com/pkgs/pro/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\Users\mnorrick\anaconda3\pkgs
C:\Users\mnorrick\AppData\Localcondaconda\pkgs
envs directories : C:\Users\mnorrick\anaconda3\envs
C:\Users\mnorrick\AppData\Localcondaconda\envs
C:\Users\mnorrick.conda\envs
platform : win-64
user-agent : conda/4.5.12 requests/2.21.0 CPython/3.7.1 Windows/7 W
indows/6.1.7601
administrator : False
netrc file : None
offline mode : False

An unexpected error has occurred. Conda has prepared the above report.
If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers?'

As suggested by @solegalli, I was able to fix it by removing the conda-forge channel. To see if you have conda-forge installed, you can open your configuration file in .condarc or just enter conda config --get channels at your conda prompt. I removed the conda-forge line from .condarc, and I'm no longer getting the error. You can also enter conda config --remove channels conda-forge to remove it.

Strangely, after removing the channel, I've added it back and the error has not returned.

Edit: Note I did uninstall anaconda yesterday before trying this today, so there is a chance that was important. But the error did not disappear until I removed the channel.

Removing the conda-forge channel appears to remove this behavior and it continues to work after add conda-forge.

The following steps worked to resolve the issue.

  1. conda config --remove channels conda-forge
  2. conda config --add channels conda-forge

No other changes were required to fix this on my system.

Thank you @EricThomson and @solegalli for figuring this out!

There were issues with repodata for conda-forge packages yesterday afternoon causing some of the errors above. The issue should be fixed now, so you should be able to install without issues using the conda-forge channel. @solegalli is this still an issue for you?

My issue is not resolved by adding / removing the conda-forge channel. I will try re-installing anaconda.

It works for me today with conda-forge.

@solegalli I'll need a bit more information to get to the bottom of what's going on. Could you give me the output of conda info, as well as the command you are running that is broken and the output of that command.

I tried:
conda install -c anaconda pip
conda install conda-build
conda update conda
conda install c- anaconda pandas

The output of any of this is python crashing. And the install aborting. The conda prompt does not close though.

conda info
`

active environment : None
user config file : C:\Users\Sole.condarc
populated config files : C:\Users\Sole.condarc
conda version : 4.5.2
conda-build version : not installed
python version : 3.6.1.final.0
base environment : C:\Users\Sole\Anaconda3 (writable)
channel URLs : https://conda.anaconda.org/conda-forge/win-64
https://conda.anaconda.org/conda-forge/noarch
https://repo.continuum.io/pkgs/msys2/win-64
https://repo.continuum.io/pkgs/msys2/noarch
package cache : C:\Users\Sole\Anaconda3\pkgs
C:\Users\Sole\AppData\Localcondaconda\pkgs
envs directories : C:\Users\Sole\Anaconda3\envs
C:\Users\Sole\AppData\Localcondaconda\envs
C:\Users\Sole.conda\envs
platform : win-64
user-agent : conda/4.5.2 requests/2.14.2 CPython/3.6.1 Windows/8.1 Windows/6.3.9600
administrator : False
netrc file : None
offline mode : False
`

$ conda config --show-sources ==> C:\Users\Sole.condarc <== ssl_verify: True channels: - conda-forge - defaults default_channels: - https://repo.continuum.io/pkgs/msys2

Thank you

I can't reproduce your issue.
Can you share the output of conda config --show

conda config --show
add_anaconda_token: True
add_pip_as_python_dependency: True
aggressive_update_packages:

  • ca-certificates
  • certifi
  • openssl
    allow_non_channel_urls: False
    allow_softlinks: False
    always_copy: False
    always_softlink: False
    always_yes: None
    anaconda_upload: None
    auto_update_conda: True
    changeps1: True
    channel_alias: https://conda.anaconda.org
    channel_priority: True
    channels:
  • conda-forge
  • defaults
    client_ssl_cert: None
    client_ssl_cert_key: None
    clobber: False
    create_default_packages: []
    custom_channels:
    pkgs/msys2: https://repo.continuum.io
    custom_multichannels:
    defaults: ["https://repo.continuum.io/pkgs/msys2"]
    local: []
    default_channels:
  • https://repo.continuum.io/pkgs/msys2
    disallowed_packages: []
    download_only: False
    envs_dirs:
  • C:\Users\Sole\Anaconda3\envs
  • C:\Users\Sole\AppData\Localcondaconda\envs
  • C:\Users\Sole.conda\envs
    force: False
    json: False
    local_repodata_ttl: 1
    max_shlvl: 2
    migrated_channel_aliases: []
    no_dependencies: False
    non_admin_enabled: True
    notify_outdated_conda: True
    offline: False
    override_channels_enabled: True
    path_conflict: clobber
    pinned_packages: []
    pkgs_dirs:
  • C:\Users\Sole\Anaconda3\pkgs
  • C:\Users\Sole\AppData\Localcondaconda\pkgs
    proxy_servers: {}
    quiet: False
    remote_connect_timeout_secs: 9.15
    remote_max_retries: 3
    remote_read_timeout_secs: 60.0
    report_errors: None
    rollback_enabled: True
    safety_checks: warn
    shortcuts: True
    show_channel_urls: None
    ssl_verify: True
    track_features: []
    use_index_cache: False
    use_pip: True
    verbosity: 0
    whitelist_channels: []

I don't think you need

custom_channels:
  - pkgs/msys2: https://repo.continuum.io
custom_multichannels:
 - defaults: ["https://repo.continuum.io/pkgs/msys2"]

or

default_channels:
 - https://repo.continuum.io/pkgs/msys2

I'm facing the same issue here.
Installed Anaconda (latest version) on Mac. 1st time install on this Mac.
I was trying to install several packages in Anaconda Navigator root environment but it gets stuck at Solving Package Specification.

From .condarc file:
ssl_verify: true
channels:

  • defaults

From conda info:

active environment : base
active env location : /anaconda3
shell level : 1
user config file : /Users/ashton/.condarc
populated config files : /Users/ashton/.condarc
conda version : 4.5.12
conda-build version : 3.17.6
python version : 3.7.1.final.0
base environment : /anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/osx-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/osx-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/osx-64
https://repo.anaconda.com/pkgs/pro/noarch
https://repo.continuum.io/pkgs/free/osx-64
https://repo.continuum.io/pkgs/free/noarch
package cache : /anaconda3/pkgs
/Users/ashton/.conda/pkgs
envs directories : /anaconda3/envs
/Users/ashton/.conda/envs
platform : osx-64
user-agent : conda/4.5.12 requests/2.21.0 CPython/3.7.1 Darwin/18.2.0 OSX/10.14.2
UID:GID : 501:20
netrc file : None
offline mode : False

Latest Mac version and latest Anaconda version.
Thx!

I also have this problem. Removing and readding conda-forge does not fix it, sadly. Any updates on the possible cause of this?

I'm having the same issue. I've reinstalled anaconda. I've removed the conda-forge. Attempting to update from command line conda update conda fails. Conda fails when trying to create any environment, or install any package. Effectively, conda is now completely broken for me.

Conda lists the following as my default channels:

  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/free
  - https://repo.anaconda.com/pkgs/r
  - https://repo.anaconda.com/pkgs/pro
  - https://repo.anaconda.com/pkgs/msys2

Changing my .condarc from

channels:
  - conda-forge
  - defaults

to

channels:
  - conda-forge
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/free
  - https://repo.anaconda.com/pkgs/r
  - https://repo.anaconda.com/pkgs/pro

To explicitly remove https://repo.anaconda.com/pkgs/msys2 appears to have fixed the problem for me. Thanks to @soapy1 for the hint!

Seems to have been an OpenSSL issue for me. Trying to use conda search was what gave it away; after installing OpenSSL, it didn't hang anymore.

I am unable to install some R packages on ubuntu when same commands work fine on Windows.

Below warning message is shown:

Warning message:
“unable to access index for repository http://R-Forge.R-project.org/src/contrib:
Line starting '

Any solutions?

Up until now, I had the same problem. Running conda update conda or conda install <packagename> my computer was unresponsive almost 1 hour and after that in the stage of solving environment conda was giving, solving environment: killed

I removed conda-forge and the problem solved. Works as expected. I use Linux mint.

Thanks, @solegalli and others for suggestions

Upgrading to conda 4.7.11-py37_0 worked for me; was then able install the package that was hanging on "solving environment" in my local python2.7 anaconda environment.

(base) C:\WINDOWS\system32>conda update conda
Collecting package metadata: done
Solving environment: |
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  - defaults/win-64::anaconda==custom=py37_0
done

## Package Plan ##

  environment location: C:\tools\Anaconda3

  added / updated specs:
    - conda


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    certifi-2019.6.16          |           py37_1         156 KB
    conda-4.7.11               |           py37_0         3.0 MB
    ------------------------------------------------------------
                                           Total:         3.2 MB

The following NEW packages will be INSTALLED:

  conda-package-han~ pkgs/main/win-64::conda-package-handling-1.3.11-py37_0

The following packages will be UPDATED:

  certifi                                   2019.3.9-py37_0 --> 2019.6.16-py37_1
  conda                                       4.6.14-py37_0 --> 4.7.11-py37_0


Proceed ([y]/n)? y


Downloading and Extracting Packages
certifi-2019.6.16    | 156 KB    | ############################################################################ | 100%
conda-4.7.11         | 3.0 MB    | ############################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

(base) C:\WINDOWS\system32>conda install -c anaconda nasm

CondaError: KeyboardInterrupt

Terminate batch job (Y/N)? y




(base) C:\WINDOWS\system32>conda activate py27




(py27) C:\WINDOWS\system32>conda install -c anaconda nasm
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\tools\Anaconda3\envs\py27

  added / updated specs:
    - nasm


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    ca-certificates-2019.5.15  |                0         166 KB  anaconda
    certifi-2019.6.16          |           py27_1         156 KB  anaconda
    nasm-2.13.03               |       h62dcd97_1         556 KB  anaconda
    openssl-1.1.1              |       h0c8e037_0         4.8 MB  anaconda
    ------------------------------------------------------------
                                           Total:         5.7 MB

The following NEW packages will be INSTALLED:

  nasm               anaconda/win-64::nasm-2.13.03-h62dcd97_1

The following packages will be UPDATED:

  openssl              pkgs/main::openssl-1.1.1c-h0c8e037_1 --> anaconda::openssl-1.1.1-h0c8e037_0

The following packages will be SUPERSEDED by a higher-priority channel:

  ca-certificates                                 pkgs/main --> anaconda
  certifi                                         pkgs/main --> anaconda


Proceed ([y]/n)? y


Downloading and Extracting Packages
certifi-2019.6.16    | 156 KB    | ############################################################################ | 100%
nasm-2.13.03         | 556 KB    | ############################################################################ | 100%
ca-certificates-2019 | 166 KB    | ############################################################################ | 100%
openssl-1.1.1        | 4.8 MB    | ############################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

In my case, I solved it by setting the variables of the PROXY environment
Since Conda did not have internet access to update.

then run

conda update conda

OK, I save my life

Hello!

In my case (windows user) the command conda init cmd.exe when I use the prompt, and conda init powershell.exe when I use a PowerShell console.

I hope this helps!

Hi, I appear to be having the same issue. conda was working in early December and I have not updated it since.

Steps to reproduce

  1. conda install python
  2. obtain the following error message
(base) C:\Users\nmacr>conda install python
Solving environment: failed

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 216, in _load
        mod_etag_headers.get('_mod'))
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 553, in fetch_repodata_remote_request
        raise Response304ContentUnchanged()
    conda.core.subdir_data.Response304ContentUnchanged

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\exceptions.py", line 819, in __call__
        return func(*args, **kwargs)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\cli\main.py", line 78, in _main
        exit_code = do_call(args, p)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\cli\conda_argparse.py", line 77, in do_call
        exit_code = getattr(module, func_name)(args, parser)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\cli\main_install.py", line 11, in execute
        install(args, parser, 'install')
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\cli\install.py", line 235, in install
        force_reinstall=context.force,
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\solve.py", line 505, in solve_for_transaction
        force_remove, force_reinstall)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\solve.py", line 438, in solve_for_diff
        final_precs = self.solve_final_state(deps_modifier, prune, ignore_pinned, force_remove)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\solve.py", line 179, in solve_final_state
        index, r = self._prepare(prepared_specs)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\solve.py", line 560, in _prepare
        self.subdirs, prepared_specs)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\index.py", line 215, in get_reduced_index
        new_records = query_all(spec)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\index.py", line 184, in query_all
        return tuple(concat(future.result() for future in as_completed(futures)))
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 94, in query
        self.load()
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 148, in load
        _internal_state = self._load()
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 222, in _load
        mod_etag_headers.get('_mod'))
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 269, in _read_local_repdata
        _internal_state = self._process_raw_repodata_str(raw_repodata_str)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\core\subdir_data.py", line 353, in _process_raw_repodata_str
        package_record = PackageRecord(**info)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\_vendor\auxlib\entity.py", line 719, in __call__
        instance = super(EntityType, cls).__call__(*args, **kwargs)
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\_vendor\auxlib\entity.py", line 736, in __init__
        setattr(self, key, kwargs[key])
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\_vendor\auxlib\entity.py", line 427, in __set__
        instance.__dict__[self.name] = self.validate(instance, self.box(instance, instance.__class__, val))
      File "C:\Users\nmacr\Miniconda3\lib\site-packages\conda\models\records.py", line 102, in box
        val = tuple(f for f in (ff.strip() for ff in val) if f)
    TypeError: 'NoneType' object is not iterable

`$ C:\Users\nmacr\Miniconda3\Scripts\conda install python`

  environment variables:
                 CIO_TEST=<not set>
        CONDA_DEFAULT_ENV=base
                CONDA_EXE=C:\Users\nmacr\Miniconda3\Scripts\conda.exe
             CONDA_PREFIX=C:\Users\nmacr\Miniconda3
    CONDA_PROMPT_MODIFIER=(base)
         CONDA_PYTHON_EXE=C:\Users\nmacr\Miniconda3\python.exe
               CONDA_ROOT=C:\Users\nmacr\Miniconda3
              CONDA_SHLVL=1
                 HOMEPATH=\Users\nmacr
          MOZ_PLUGIN_PATH=C:\PROGRAM FILES (X86)\FOXIT SOFTWARE\FOXIT READER\plugins\
                     PATH=C:\Users\nmacr\Miniconda3;C:\Users\nmacr\Miniconda3\Library\mingw-w64\
                          bin;C:\Users\nmacr\Miniconda3\Library\usr\bin;C:\Users\nmacr\Miniconda
                          3\Library\bin;C:\Users\nmacr\Miniconda3\Scripts;C:\Users\nmacr\Minicon
                          da3\bin;C:\Program Files\Docker\Docker\Resources\bin;C:\Program Files
                          (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\jav
                          apath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDO
                          WS\System32\WindowsPowerShell\v1.0\;C:\Python27;C:\Program
                          Files\Git\cmd;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;;C:\WINDOWS\
                          System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program
                          Files\nodejs\;C:\Program Files\Microsoft VS Code\bin;C:\Users\nmacr\Ap
                          pData\Local\Mu\bin;C:\Users\nmacr\AppData\Local\Microsoft\WindowsApps;
                          C:\Program Files\Microsoft VS
                          Code\bin;C:\Users\nmacr\AppData\Local\Box\Box Edit\;C:\Users\nmacr\App
                          Data\Local\GitHubDesktop\bin;C:\Users\nmacr\AppData\Local\Microsoft\Wi
                          ndowsApps;C:\Users\nmacr\AppData\Roaming\npm;C:\Users\nmacr\Miniconda3
                          ;C:\Users\nmacr\Miniconda3\Scripts;;C:\Users\nmacr\Miniconda3\lib\site
                          -packages\pywin32_system32;C:\Users\nmacr\Miniconda3\lib\site-
                          packages\pywin32_system32
             PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\Windows
                          PowerShell\v1.0\Modules
         PYTHONIOENCODING=1252
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : base
    active env location : C:\Users\nmacr\Miniconda3
            shell level : 1
       user config file : C:\Users\nmacr\.condarc
 populated config files : C:\Users\nmacr\.condarc
          conda version : 4.5.4
    conda-build version : not installed
         python version : 3.6.5.final.0
       base environment : C:\Users\nmacr\Miniconda3  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/win-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/win-64
                          https://repo.anaconda.com/pkgs/pro/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\nmacr\Miniconda3\pkgs
                          C:\Users\nmacr\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\nmacr\Miniconda3\envs
                          C:\Users\nmacr\AppData\Local\conda\conda\envs
                          C:\Users\nmacr\.conda\envs
               platform : win-64
             user-agent : conda/4.5.4 requests/2.18.4 CPython/3.6.5 Windows/10 Windows/10.0.17134
          administrator : False
             netrc file : None
           offline mode : False


An unexpected error has occurred. Conda has prepared the above report.
If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers?
[y/N]: 

conda info

     active environment : base
    active env location : C:\Users\nmacr\Miniconda3
            shell level : 1
       user config file : C:\Users\nmacr\.condarc
 populated config files : C:\Users\nmacr\.condarc
          conda version : 4.5.4
    conda-build version : not installed
         python version : 3.6.5.final.0
       base environment : C:\Users\nmacr\Miniconda3  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/win-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/win-64
                          https://repo.anaconda.com/pkgs/pro/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\nmacr\Miniconda3\pkgs
                          C:\Users\nmacr\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\nmacr\Miniconda3\envs
                          C:\Users\nmacr\AppData\Local\conda\conda\envs
                          C:\Users\nmacr\.conda\envs
               platform : win-64
             user-agent : conda/4.5.4 requests/2.18.4 CPython/3.6.5 Windows/10 Windows/10.0.17134
          administrator : False
             netrc file : None
           offline mode : False

conda config --show-sources

==> C:\Users\nmacr\.condarc <==
channels:
  - conda-forge
  - defaults

conda list --show-channel-urls

# packages in environment at C:\Users\nmacr\Miniconda3:
#
# Name                    Version                   Build  Channel
asn1crypto                0.24.0                   py36_0    defaults
ca-certificates           2018.03.07                    0    defaults
certifi                   2018.4.16                py36_0    defaults
cffi                      1.11.5           py36h945400d_0    defaults
chardet                   3.0.4            py36h420ce6e_1    defaults
conda                     4.5.4                    py36_0    defaults
conda-env                 2.6.0                h36134e3_1    defaults
console_shortcut          0.1.1                h6bb2dd7_3    defaults
cryptography              2.2.2            py36hfa6e2cd_0    defaults
idna                      2.6              py36h148d497_1    defaults
menuinst                  1.4.11           py36hfa6e2cd_0    defaults
openssl                   1.0.2o               h8ea7d77_0    defaults
pip                       9.0.3                    py36_0    defaults
pycosat                   0.6.3            py36h413d8a4_0    defaults
pycparser                 2.18             py36hd053e01_1    defaults
pyopenssl                 17.5.0           py36h5b7d817_0    defaults
pysocks                   1.6.8                    py36_0    defaults
python                    3.6.5                h0c2934d_0    defaults
pywin32                   223              py36hfa6e2cd_0    defaults
requests                  2.18.4           py36h4371aae_1    defaults
ruamel_yaml               0.15.35          py36hfa6e2cd_1    defaults
setuptools                39.0.1                   py36_0    defaults
six                       1.11.0           py36h4db2310_1    defaults
urllib3                   1.22             py36h276f60a_0    defaults
vc                        14                   h0510ff6_3    defaults
vs2015_runtime            14.0.25123                    3    defaults
wheel                     0.31.0                   py36_0    defaults
win_inet_pton             1.0.1            py36he67d7fd_1    defaults
wincertstore              0.2              py36h7fe50ca_0    defaults
yaml                      0.1.7                hc54c509_2    defaults

Please let me know if any additional information is required to help debug this problem.

I had the same issue and i solved it by copying the following channels in condarc and instead o f defaults. I'm not sure it's the best way but it worked

                      https://repo.anaconda.com/pkgs/main/noarch
                      https://repo.anaconda.com/pkgs/free/noarch
                      https://repo.anaconda.com/pkgs/r/noarch
                      https://repo.anaconda.com/pkgs/pro/noarch

Same issue. conda info gives:

     active environment : base
    active env location : C:\ProgramData\Anaconda3
            shell level : 1
       user config file : C:\Users\chgepan\.condarc
 populated config files : C:\Users\chgepan\.condarc
          conda version : 4.7.12
    conda-build version : 3.18.8
         python version : 3.7.3.final.0
       virtual packages : __cuda=10.2
       base environment : C:\ProgramData\Anaconda3  (read only)
           channel URLs : https://repo.anaconda.com/pkgs/pro/noarch
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/main/noarch
          package cache : C:\ProgramData\Anaconda3\pkgs
                          C:\Users\chgepan\.conda\pkgs
                          C:\Users\chgepan\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\chgepan\.conda\envs
                          C:\ProgramData\Anaconda3\envs
                          C:\Users\chgepan\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.7.12 requests/2.22.0 CPython/3.7.3 Windows/10 Windows/10.0.16299
          administrator : False
             netrc file : None
           offline mode : False

Having a similar issue, started very randomly few days ago:

(pytorch.1.2) [j0541825@powerpc8-2 examples]$ conda install sympy --verbose
Collecting package metadata: ...working... done
Solving environment: ...working... done


==> WARNING: A newer version of conda exists. <==
  current version: 4.6.8
  latest version: 4.8.1

Please update conda by running

    $ conda update -n base -c defaults conda


initializing UnlinkLinkTransaction with
  target_prefix: /anaconda3/envs/pytorch.1.2
  unlink_precs:

  link_precs:
    defaults::gmp-6.1.2-h7f7056e_2
    defaults::mpfr-4.0.1-hdf1c602_3
    defaults::mpc-1.1.0-h10f8cd9_1
    defaults::fastcache-1.1.0-py36h7b6447c_0
    defaults::gmpy2-2.0.8-py36h10f8cd9_2
    defaults::mpmath-1.1.0-py36_0
    defaults::sympy-1.5.1-py36_0


^CTraceback (most recent call last):
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 294, in _make_single_record
    repodata_record = read_repodata_json(extracted_package_dir)
  File "/anaconda3/lib/python3.7/site-packages/conda/gateways/disk/read.py", line 126, in read_repodata_json
    with open(join(extracted_package_directory, 'info', 'repodata_record.json')) as fi:
  File "/anaconda3/lib/python3.7/site-packages/conda/common/compat.py", line 132, in open
    closefd=closefd)
FileNotFoundError: [Errno 2] No such file or directory: '/anaconda3/pkgs/cudnn-7.6.3_10.1-590.g5627c5e/info/repodata_record.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 311, in _make_single_record
    raw_json_record = read_index_json(extracted_package_dir)
  File "/anaconda3/lib/python3.7/site-packages/conda/gateways/disk/read.py", line 115, in read_index_json
    with open(join(extracted_package_directory, 'info', 'index.json')) as fi:
  File "/anaconda3/lib/python3.7/site-packages/conda/common/compat.py", line 132, in open
    closefd=closefd)
FileNotFoundError: [Errno 2] No such file or directory: '/anaconda3/pkgs/cudnn-7.6.3_10.1-590.g5627c5e/info/index.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1002, in __call__
    return func(*args, **kwargs)
  File "/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line 84, in _main
    exit_code = do_call(args, p)
  File "/anaconda3/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 82, in do_call
    exit_code = getattr(module, func_name)(args, parser)
  File "/anaconda3/lib/python3.7/site-packages/conda/cli/main_install.py", line 20, in execute
    install(args, parser, 'install')
  File "/anaconda3/lib/python3.7/site-packages/conda/cli/install.py", line 275, in install
    handle_txn(unlink_link_transaction, prefix, args, newenv)
  File "/anaconda3/lib/python3.7/site-packages/conda/cli/install.py", line 291, in handle_txn
    unlink_link_transaction.print_transaction_summary()
  File "/anaconda3/lib/python3.7/site-packages/conda/core/link.py", line 818, in print_transaction_summary
    legacy_action_groups = self._make_legacy_action_groups()
  File "/anaconda3/lib/python3.7/site-packages/conda/core/link.py", line 802, in _make_legacy_action_groups
    self._pfe.prepare()
  File "/anaconda3/lib/python3.7/site-packages/conda/common/io.py", line 85, in decorated
    return f(*args, **kwds)
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 574, in prepare
    for prec in self.link_precs)
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 574, in <genexpr>
    for prec in self.link_precs)
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 468, in make_actions_for_record
    ), None)
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 465, in <genexpr>
    pcrec for pcrec in concat(PackageCacheData(pkgs_dir).query(pref_or_spec)
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 466, in <genexpr>
    for pkgs_dir in context.pkgs_dirs)
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 122, in query
    return (pcrec for pcrec in itervalues(self._package_cache_records) if pcrec == param)
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 237, in _package_cache_records
    self.load()
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 88, in load
    package_cache_record = self._make_single_record(base_name)
  File "/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 333, in _make_single_record
    extract_tarball(package_tarball_full_path, extracted_package_dir)
  File "/anaconda3/lib/python3.7/site-packages/conda/gateways/disk/create.py", line 185, in extract_tarball
    tar_file.extractall(path=destination_directory)
  File "/anaconda3/lib/python3.7/tarfile.py", line 2002, in extractall
    numeric_owner=numeric_owner)
  File "/anaconda3/lib/python3.7/tarfile.py", line 2044, in extract
    numeric_owner=numeric_owner)
  File "/anaconda3/lib/python3.7/tarfile.py", line 2114, in _extract_member
    self.makefile(tarinfo, targetpath)
  File "/anaconda3/lib/python3.7/tarfile.py", line 2163, in makefile
    copyfileobj(source, target, tarinfo.size, ReadError, bufsize)
  File "/anaconda3/lib/python3.7/tarfile.py", line 247, in copyfileobj
    buf = src.read(bufsize)
  File "/anaconda3/lib/python3.7/bz2.py", line 178, in read
    return self._buffer.read(size)
  File "/anaconda3/lib/python3.7/_compression.py", line 68, in readinto
    data = self.read(len(byte_view))
  File "/anaconda3/lib/python3.7/_compression.py", line 103, in read
    data = self._decompressor.decompress(rawblock, size)
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/anaconda3/bin/conda", line 13, in <module>
    sys.exit(main())
  File "/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line 117, in main
    return conda_exception_handler(_main, *args, **kwargs)
  File "/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1290, in conda_exception_handler
    return_value = exception_handler(func, *args, **kwargs)
  File "/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1005, in __call__
    return self.handle_exception(exc_val, exc_tb)
  File "/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1045, in handle_exception
    self._print_conda_exception(CondaError("KeyboardInterrupt"), _format_exc())
  File "/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1056, in _print_conda_exception
    print_conda_exception(exc_val, exc_tb)
  File "/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 971, in print_conda_exception
    print(_format_exc(exc_val, exc_tb), file=sys.stderr)
  File "/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 992, in _format_exc
    formatted_exception = format_exception(exc_type, exc_val, exc_tb)
  File "/anaconda3/lib/python3.7/traceback.py", line 121, in format_exception
    type(value), value, tb, limit=limit).format(chain=chain))
  File "/anaconda3/lib/python3.7/traceback.py", line 508, in __init__
    capture_locals=capture_locals)
  File "/anaconda3/lib/python3.7/traceback.py", line 344, in extract
    for f, lineno in frame_gen:
  File "/anaconda3/lib/python3.7/traceback.py", line 309, in walk_tb
    yield tb.tb_frame, tb.tb_lineno
AttributeError: 'str' object has no attribute 'tb_frame'
(pytorch.1.2) [j0541825@powerpc8-2 examples]$ 

(pytorch.1.2) [powerpc8-2 examples]$ conda info

     active environment : pytorch.1.2
    active env location : /data/gpfs/Users/anaconda3/envs/pytorch.1.2
            shell level : 1
       user config file : /home/.condarc
 populated config files : /home/.condarc
          conda version : 4.6.8
    conda-build version : 3.16.3
         python version : 3.7.1.final.0
       base environment : /data/gpfs/Users/anaconda3  (writable)
           channel URLs : https://public.dhe.ibm.com/ibmdl/export/pub/software/server/ibm-ai/conda-early-access/linux-ppc64le
                          https://public.dhe.ibm.com/ibmdl/export/pub/software/server/ibm-ai/conda-early-access/noarch
                          https://public.dhe.ibm.com/ibmdl/export/pub/software/server/ibm-ai/conda/linux-ppc64le
                          https://public.dhe.ibm.com/ibmdl/export/pub/software/server/ibm-ai/conda/noarch
                          https://repo.anaconda.com/pkgs/main/linux-ppc64le
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/linux-ppc64le
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/linux-ppc64le
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /data/gpfs/Users/anaconda3/pkgs
                          /home/.conda/pkgs
       envs directories : /data/gpfs/Users/anaconda3/envs
                          /home/.conda/envs
               platform : linux-ppc64le
             user-agent : conda/4.6.8 requests/2.21.0 CPython/3.7.1 Linux/3.10.0-693.el7.ppc64le rhel/7.4 glibc/2.17
                UID:GID : 10284:512
             netrc file : None
           offline mode : False


Reinstalling anaconda didn't help. But starting a new linux account and installing anaconda resolved the issue. So must be something local.

I had the same issue when adding conda-forge channel and i fixed it by changing channel-priority to "flexible"

conda config --describe channel_priority
conda config --set channel_priority flexible

After that conda update conda woked fine again. I hope it helps.

Tried:
conda config --set channel_priority flexible

and got an error. It allowed me to send a message to the maintainers, so perhaps someone will see it.

I am just trying to install the bezier, or r-bezier package, and it fails repeatedly.

I had the same issue when adding conda-forge channel and i fixed it by changing channel-priority to "flexible"

conda config --describe channel_priority
conda config --set channel_priority flexible

After that conda update conda woked fine again. I hope it helps.

conda config --set channel_priority flexible worked for me!

I had the same problem. I don't know why and how. It just suddenly happened right after I used it as normal last day.
I am unable to conda install anything even cannot do conda update conda.
Every time it stops after Collecting package metadata and shows

Collecting package metadata (current_repodata.json): failed
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
        ...
        raise Response304ContentUnchanged()
    conda.core.subdir_data.Response304ContentUnchanged
        ...

I search on the internet and find this conda install error.
I check conda clean which is just to remove some unused packages and zip/tar files.

So, I try to do conda clean --all and remove all the files which are auto-recommend by conda .
Now it works well after that.

I found that my cache of conda packages was corrupt due to my mistake and the re-generation of cache/metadata takes about 1sec per package, so it was very slow and it appears as stalled.

Made sure Anaconda was up to date, and not running in the background. This fixed the issue

As suggested by @solegalli, I was able to fix it by removing the conda-forge channel. To see if you have conda-forge installed, you can open your configuration file in .condarc or just enter conda config --get channels at your conda prompt. I removed the conda-forge line from .condarc, and I'm no longer getting the error. You can also enter conda config --remove channels conda-forge to remove it.

Strangely, after removing the channel, I've added it back and the error has not returned.

Edit: Note I did uninstall anaconda yesterday before trying this today, so there is a chance that was important. But the error did not disappear until I removed the channel.

Thank you. I fix my problem by your suggestion.

I had the same problem. I don't know why and how. It just suddenly happened right after I used it as normal last day.
I am unable to conda install anything even cannot do conda update conda.
Every time it stops after Collecting package metadata and shows

Collecting package metadata (current_repodata.json): failed
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
        ...
        raise Response304ContentUnchanged()
    conda.core.subdir_data.Response304ContentUnchanged
        ...

I search on the internet and find this conda install error.
I check conda clean which is just to remove some unused packages and zip/tar files.

So, I try to do conda clean --all and remove all the files which are auto-recommend by conda .
Now it works well after that.

Thx. I tried conda clean -i, which fix my problem.

Same problem here on Windows. I've tried conda clean -i, conda clean -all, checked the channel-priority (which was already flexible), no luck. I don't have conda-forge channel, or any others really. conda config --show gives

default_channels:
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - https://repo.anaconda.com/pkgs/msys2

conda update -vvv conda gives me
`` ..... DEBUG conda.core.solve:solve_final_state(223): solving prefix C:\Users\krisf\Anaconda2 specs_to_remove: frozenset([]) specs_to_add: frozenset([MatchSpec("conda")]) prune: <auxlib._Null object at 0x0000000002D68CC0> Collecting package metadata (repodata.json): ...working... TRACE conda.gateways.disk.test:file_path_is_writable(25): checking path is writable C:\Users\krisf\Anaconda2\pkgs\urls.txt DEBUG conda.core.package_cache_data:_check_writable(259): package cache directory 'C:\Users\krisf\Anaconda2\pkgs' writable: True ```` and then nothing happens anymore. 0% CPU time used byconda`. I've waited for 8 hours and had to cancel via Task Manager.

Seems to have been an OpenSSL issue for me. Trying to use conda search was what gave it away; after installing OpenSSL, it didn't hang anymore.

how did u install openssl?

how did u install openssl?

Good question! The following hangs

> conda install -c anaconda openssl
Collecting package metadata (repodata.json): /

The solution is to update Conda to latest version, then create a Conda env (I know it sounds redundant) and lastly, run:

conda config --set ssl_verify False

You’ll be able to download whatever packages. At some point you may want to re-run as True to regain SSL/TLS verification.

Tried on three machines with newly installed miniconda v3.7
All running into the same problem

This needs to be fixed.

Tried on three machines with newly installed miniconda v3.7
All running into the same problem

This needs to be fixed.

@northNomad Please let us know what you have tried from the above posts and if they do not help (and of course if any of them help please let us know!).

conda install hicexplorer --verbose -c bioconda -c conda-forge
Collecting package metadata (current_repodata.json): ...working... Unable to retrieve repodata (response: 404) for https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64/current_repodata.json

Unable to retrieve repodata (response: 404) for https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro/linux-64/current_repodata.json

done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Solving environment: ...working...

It seems there's something wrong with tsinghua source. And My laptop can access
the two resources normally( i.e. https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro/linux-64/current_repodata.json)
I don't know what's wrong with the network of my lab's server. (and on that server, conda update conda can install a lot of packages and pip can also install packages, so the usual network should be normal)

At first I have the default authoritised channels and I tried to remove the conda-forge channels, but it doesn't work. And I used condo clean, but after that, I still cannot install the packages. Then I conda update conda, this can update my conda(it installed a lot of packages) but after that I still cannot install hicexplorer. So I checked tsinghua source website to see the newest update, and update my .condarc to

channels:

Then I still cannot install hicexplorer (404 error).

tsinghua source has got the license, right?

(tensorflow) Avaneeshs-MacBook-Pro:~ $ conda config --set channel_priority flexible
.......
packages/conda/_vendor/auxlib/type_coercion.py", line 259, in typify_data_structure
return typify(value, type_hint)
File "/Applications/anaconda2/lib/python2.7/site-packages/conda/_vendor/auxlib/type_coercion.py", line 246, in typify
raise TypeCoercionError(value, text_type(e))
TypeCoercionError: The value u'flexible' cannot be boolified.

An unexpected error has occurred. Conda has prepared the above report.
Upload successful.


Facing issue in changing the channel flexibility using "conda config --set channel_priority flexible" although "conda clean --all" solved the issue of "solving environment: failed"

I had the same problem. Removing conda-forge cannot solve mine.
Thanks to this blog "https://www.jianshu.com/p/2bca744fcd82", I run "conda clean -i" and solved this.

I've installed latest Anaconda3. a first conda update conda went fine. Then stuck again.

conda clean -idoesn't help me. @joehoeller's trick (create env, activate,conda config --set ssl_verify False`) doesn't help either.

So, I cannot use conda at all.

One thing to note is that at least now a Ctrl-C does abort (with my previous anaconda2 installation I needed to kill conda with the task manager)

After one year without problem, I had the same problem yesterday, with the message:

Solving environment: failed with repodata from current_repodata.json

I fixed it by following @EricThomson advice: removing conda-forge from the root .condarc (inside the user directory).

I haven't tried it but removing then adding it again likely works because it changes the channels priorities.

trying to install opencv. using newest conda version (at least conda update conda said so)

  • conda clean didn't work
  • conda config --remove channels conda-forge then
    conda config --add channels conda-forge didn't work
  • create env didn't work

conda install -c conda-forge opencv

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: -
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
Found conflicts! Looking for incompatible packages.

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  • anaconda-navigator==1.9.12 -> python[version='2.7.|3.5.|3.6.|>=3.5,<3.6.0a0|3.4.']
  • anaconda-project -> python[version='3.4.*|>=3.8,<3.9.0a0']
  • anaconda==2019.10 -> python[version='2.7.16|3.6.9|3.7.4',build='h5263a28_0|hcb6e200_0|h5500b2f_0']
  • backports.functools_lru_cache -> python[version='2.7.|3.5.|3.6.|3.4.|>=2.7,<2.8.0a0']
  • bkcharts -> python=3.4
  • bleach -> python[version='>=3.8,<3.9.0a0']
  • cffi -> python[version='2.7.|3.5.|3.6.|3.6.9|3.6.9|>=2.7,<2.8.0a0|>=3.8,<3.9.0a0|>=3.7,<3.8.0a0|>=3.6,<3.7.0a0|>=3.5,<3.6.0a0|3.4.',build='2_73_pypy|1_73_pypy|0_73_pypy']
  • conda-env -> python[version='2.7.|3.4.|3.5.*']
  • cryptography -> python[version='3.4.*|3.6.9|<=3.3',build='2_73_pypy|1_73_pypy|0_73_pypy']
  • curl -> python=2.7
  • gevent -> python[version='3.6.9|3.7.|3.8.',build='2_73_pypy|1_73_pypy|0_73_pypy']
  • h5py -> python[version='<3']
  • html5lib -> python[version='3.4.*|>=3.8,<3.9.0a0']
  • jinja2 -> python[version='>=3.8,<3.9.0a0']
  • joblib -> python[version='>=3.8,<3.9.0a0']

Then it runs forever and outputs a lot of stuff like this:

  • html5lib -> python[version='3.4.*|>=3.8,<3.9.0a0']
  • jinja2 -> python[version='>=3.8,<3.9.0a0']
  • joblib -> python[version='>=3.8,<3.9.0a0']
    .....

Have the same issue as @Architect0711. Cannot build my images.

first you should run the below commands before your desired package installation

conda create --name myenv
conda activate myenv

I've installed latest Anaconda3. a first conda update conda went fine. Then stuck again.

conda clean -idoesn't help me. @joehoeller's trick (create env, activate,conda config --set ssl_verify False`) doesn't help either.

So, I cannot use conda at all.

One thing to note is that at least now a Ctrl-C does abort (with my previous anaconda2 installation I needed to kill conda with the task manager)

What’s the error output on cmd line?

@joehoeller
Not the one who wrote this exact command, but "stuck" probably means the same as OP's "It hangs in "solving environment" ", which is what also happened to me.
So there's no message at all. You just see "solving environment" and nothing happens, then after a while you come back to the command prompt.

Once again, in my case fixing it was just a matter of not using conda-forge. So it's probably more a matter of channel maintenance than code maintenance?

@Architect0711

Your problem is not related to "can't install anything using conda, it hangs in solving environment".
Please be more careful.

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment

The message is pretty clear: you already have Python in the environment where you're executing the opencv installation command, and its version does not satisfy the compatibility check which is done when one uses conda install.

This is the perfect example of why to use conda: it enforces the compatibility of every libraries inside an environment, and if this prevents you from installing a new library, then you can easily create a new environment where everything will be OK (see @jay6430 answer).

there's no message at all. You just see "solving environment" and nothing happens, then after a while you come back to the command prompt.

thanks @FrankwaP for stepping in. that's correct.

in my case fixing it was just a matter of not using conda-forge.

I've deleted the channel and tried to install one thing. Seemed indeed to be working fine. Obviously, that isn't much use to me, but could help with solving the problem.

Try conda clean -i

Updating conda and then running the following worked for me:

conda create --name myenv
conda activate myenv

So I've tried some things before being able to download packages without conda getting stuck and I did what many of you suggest. I'll gather all that in this comment.

  1. I tried installing conda v4.6.9 by running, in the base environment, conda install conda=4.6.9. Not sure if this had something to do with it but is worth mentioning it.
  2. I created another environment. I couldn't get packages installed in the root environment.
  3. Avoid using -c option to specify channels. Just go straight with conda install <package>.
  4. Set channel priority by running conda config --set channel_priority strict.

My guess is that conda is having issues installing packages other than in ~/anaconda3/envs. I can't say this will make it work for everyone but at least did it for me.

FWIW, I installed Anaconda with CLI installer and I'm running it on macOS Catalina 10.15.4.

Hope this gets fixed by the team soon. It's a blocker for many of us.

I face same problem that I could not update or download package.

(base) C:\Users\Shungo>conda update conda
Collecting package metadata (current_repodata.json): failed

>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

Traceback (most recent call last):
  File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\exceptions.py", line 1079, in __call__
    return func(*args, **kwargs)
  File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\cli\main.py", line 84, in _main
    exit_code = do_call(args, p)
  File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\cli\conda_argparse.py", line 82, in do_call
    return getattr(module, func_name)(args, parser)
  File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\cli\main_update.py", line 20, in execute
    install(args, parser, 'update')
  File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\cli\install.py", line 265, in install
    should_retry_solve=(_should_retry_unfrozen or repodata_fn != repodata_fns[-1]),
  File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\solve.py", line 117, in solve_for_transaction
    should_retry_solve)
  File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\solve.py", line 158, in solve_for_diff
    force_remove, should_retry_solve)
  File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\solve.py", line 262, in solve_final_state
    ssc = self._collect_all_metadata(ssc)
  File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\common\io.py", line 88, in decorated
    return f(*args, **kwds)
  File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\solve.py", line 415, in _collect_all_metadata
    index, r = self._prepare(prepared_specs)
  File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\solve.py", line 1011, in _prepare
    self.subdirs, prepared_specs, self._repodata_fn)
  File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\index.py", line 228, in get_reduced_index
    repodata_fn=repodata_fn)
  File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\subdir_data.py", line 105, in query_all
    result = tuple(concat(executor.map(subdir_query, channel_urls)))
  File "C:\Users\Shungo\anaconda3\lib\concurrent\futures\_base.py", line 598, in result_iterator
    yield fs.pop().result()
  File "C:\Users\Shungo\anaconda3\lib\concurrent\futures\_base.py", line 435, in result
    return self.__get_result()
  File "C:\Users\Shungo\anaconda3\lib\concurrent\futures\_base.py", line 384, in __get_result
    raise self._exception
  File "C:\Users\Shungo\anaconda3\lib\concurrent\futures\thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\subdir_data.py", line 98, in <lambda>
    package_ref_or_match_spec))
  File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\subdir_data.py", line 110, in query
    self.load()
  File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\subdir_data.py", line 174, in load
    _internal_state = self._load()
  File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\subdir_data.py", line 248, in _load
    repodata_fn=self.repodata_fn)
  File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\subdir_data.py", line 485, in fetch_repodata_remote_request
    timeout=timeout)
  File "C:\Users\Shungo\anaconda3\lib\site-packages\requests\sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "C:\Users\Shungo\anaconda3\lib\site-packages\requests\sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Users\Shungo\anaconda3\lib\site-packages\requests\sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "C:\Users\Shungo\anaconda3\lib\site-packages\requests\adapters.py", line 412, in send
    conn = self.get_connection(request.url, proxies)
  File "C:\Users\Shungo\anaconda3\lib\site-packages\requests\adapters.py", line 309, in get_connection
    proxy_manager = self.proxy_manager_for(proxy)
  File "C:\Users\Shungo\anaconda3\lib\site-packages\requests\adapters.py", line 199, in proxy_manager_for
    **proxy_kwargs)
  File "C:\Users\Shungo\anaconda3\lib\site-packages\urllib3\poolmanager.py", line 470, in proxy_from_url
    return ProxyManager(proxy_url=url, **kw)
  File "C:\Users\Shungo\anaconda3\lib\site-packages\urllib3\poolmanager.py", line 420, in __init__
    raise ProxySchemeUnknown(proxy.scheme)
urllib3.exceptions.ProxySchemeUnknown: Not supported proxy scheme None

$ C:\Users\Shungo\anaconda3\Scripts\conda-script.py update conda

environment variables:
CIO_TEST=
CONDA_BAT=C:\Users\Shungo\anaconda3condabinconda.bat
CONDA_DEFAULT_ENV=base
CONDA_EXE=C:\Users\Shungo\anaconda3condabin..\Scriptsconda.exe
CONDA_EXES="C:\Users\Shungo\anaconda3condabin..\Scriptsconda.exe"
CONDA_PREFIX=C:\Users\Shungo\anaconda3
CONDA_PROMPT_MODIFIER=(base)
CONDA_PYTHON_EXE=C:\Users\Shungo\anaconda3\python.exe
CONDA_ROOT=C:\Users\Shungo\anaconda3
CONDA_SHLVL=1
HOMEPATH=\Users\Shungo
HTTPS_PROXY=
HTTP_PROXY=
PATH=C:\Users\Shungo\anaconda3;C:\Users\Shungo\anaconda3\Library\mingw-w64\
bin;C:\Users\Shungo\anaconda3\Library\usr\bin;C:\Users\Shungo\anaconda
3\Library\bin;C:\Users\Shungo\anaconda3\Scripts;C:\Users\Shungo\anacon
da3\bin;C:\Users\Shungo\anaconda3;C:\Users\Shungo\anaconda3\Library\mi
ngw-w64\
PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\Windows
PowerShell\v1.0\Modules
REQUESTS_CA_BUNDLE=
SSL_CERT_FILE=

 active environment : base
active env location : C:\Users\Shungo\anaconda3
        shell level : 1
   user config file : C:\Users\Shungo\.condarc

populated config files : C:\Users\Shungo.condarc
conda version : 4.8.2
conda-build version : 3.18.11
python version : 3.7.6.final.0
virtual packages :
base environment : C:\Users\Shungo\anaconda3 (writable)
channel URLs : https://conda.anaconda.org/conda-forge/win-64
https://conda.anaconda.org/conda-forge/noarch
https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/win-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/win-64
https://repo.anaconda.com/pkgs/pro/noarch
package cache : C:\Users\Shungo\anaconda3\pkgs
C:\Users\Shungo.conda\pkgs
C:\Users\Shungo\AppData\Localcondaconda\pkgs
envs directories : C:\Users\Shungo\anaconda3\envs
C:\Users\Shungo.conda\envs
C:\Users\Shungo\AppData\Localcondaconda\envs
platform : win-64
user-agent : conda/4.8.2 requests/2.22.0 CPython/3.7.6 Windows/10 Windows/10.0.18362
administrator : False
netrc file : None
offline mode : False

If someone know solution, please teach me.
Thank you

@alvgaona

Pretty sure it's not point 2 but point 3 that solved your problem: I always create environments yet also had this issue, until I removed "-c conda-forge".

@ShunTono

I face same problem that I could not update or download package.

No you don't since your install doesn't "hang in solving environment" as the post title says. No one here mentions this "urllib3.exceptions.ProxySchemeUnknown" you have.

This solved topic seems relevant: https://github.com/psf/requests/issues/5297
I found it with a "conda urllib3.exceptions.ProxySchemeUnknown" search (just saying so you know what to do next time). Look at "joh-ku" post which has clear instructions.

Thank you for your advice!
I will check it.

it can work:
conda clean -i

I have issues installing geopandas. I opened an issue on their GitHub but later found out that the issue is not with geopandas. I can't install anything using conda.

https://github.com/conda-forge/geopandas-feedstock/issues/82#issue-622293206

I also tried conda clean --all and the steps mentioned in this post.


Issue:
I have tried multiple ways but can't install geopandas package. I tried geopandas install guide, but get output that runs forever. I tried without creating an environment, after creating a new environment, using defaults channel and using conda-forge channel. None worked. I tried removing anaconda completely and reinstalled.

$ conda create -n top 
$ conda activate top
$ conda config --env --add channels conda-forge
$ conda config --env --set channel_priority strict
$ conda install python=3 geopandas
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: \ 

I don't want to use pip install because it is preferred to use conda install.
Also I tried installing using Anaconda Navigator following this answer, but the progress bar keeps running saying solving package specifications.



Environment (conda list):

$ conda list
# packages in environment at /Users/sadeed/opt/anaconda3/envs/top:
#
# Name                    Version                   Build  Channel
_ipyw_jlab_nb_ext_conf    0.1.0                    py37_0  
alabaster                 0.7.12                   py37_0  
anaconda                  2020.02                  py37_0  
anaconda-client           1.7.2                    py37_0  
anaconda-navigator        1.9.12                   py37_0  
anaconda-project          0.8.4                      py_0  
applaunchservices         0.2.1                      py_0  
appnope                   0.1.0                    py37_0  
appscript                 1.1.0            py37h1de35cc_0  
argh                      0.26.2                   py37_0  
asn1crypto                1.3.0                    py37_0  
astroid                   2.3.3                    py37_0  
astropy                   4.0              py37h1de35cc_0  
atomicwrites              1.3.0                    py37_1  
attrs                     19.3.0                     py_0  
autopep8                  1.4.4                      py_0  
babel                     2.8.0                      py_0  
backcall                  0.1.0                    py37_0  
backports                 1.0                        py_2  
backports.functools_lru_cache 1.6.1                      py_0  
backports.shutil_get_terminal_size 1.0.0                    py37_2  
backports.tempfile        1.0                        py_1  
backports.weakref         1.0.post1                  py_1  
beautifulsoup4            4.8.2                    py37_0  
bitarray                  1.2.1            py37h1de35cc_0  
bkcharts                  0.2                      py37_0  
blas                      1.0                         mkl  
bleach                    3.1.0                    py37_0  
blosc                     1.16.3               hd9629dc_0  
bokeh                     1.4.0                    py37_0  
boto                      2.49.0                   py37_0  
bottleneck                1.3.2            py37h776bbcc_0  
bzip2                     1.0.8                h1de35cc_0  
ca-certificates           2020.1.1                      0  
certifi                   2019.11.28               py37_0  
cffi                      1.14.0           py37hb5b8e2f_0  
chardet                   3.0.4                 py37_1003  
click                     7.0                      py37_0  
cloudpickle               1.3.0                      py_0  
clyent                    1.2.2                    py37_1  
colorama                  0.4.3                      py_0  
conda-package-handling    1.6.0            py37h1de35cc_0  
conda-verify              3.4.2                      py_1  
contextlib2               0.6.0.post1                py_0  
cryptography              2.8              py37ha12b0ac_0  
curl                      7.68.0               ha441bb4_0  
cycler                    0.10.0                   py37_0  
cython                    0.29.15          py37h0a44026_0  
cytoolz                   0.10.1           py37h1de35cc_0  
dask                      2.11.0                     py_0  
dask-core                 2.11.0                     py_0  
dbus                      1.13.12              h90a0687_0  
decorator                 4.4.1                      py_0  
defusedxml                0.6.0                      py_0  
diff-match-patch          20181111                   py_0  
distributed               2.11.0                   py37_0  
docutils                  0.16                     py37_0  
entrypoints               0.3                      py37_0  
et_xmlfile                1.0.1                    py37_0  
expat                     2.2.6                h0a44026_0  
fastcache                 1.1.0            py37h1de35cc_0  
filelock                  3.0.12                     py_0  
flake8                    3.7.9                    py37_0  
flask                     1.1.1                      py_0  
freetype                  2.9.1                hb4e5f40_0  
fsspec                    0.6.2                      py_0  
future                    0.18.2                   py37_0  
get_terminal_size         1.0.0                h7520d66_0  
gettext                   0.19.8.1             h15daf44_3  
gevent                    1.4.0            py37h1de35cc_0  
glib                      2.63.1               hd977a24_0  
glob2                     0.7                        py_0  
gmp                       6.1.2                hb37e062_1  
gmpy2                     2.0.8            py37h6ef4df4_2  
greenlet                  0.4.15           py37h1de35cc_0  
h5py                      2.10.0           py37h3134771_0  
hdf5                      1.10.4               hfa1e0ec_0  
heapdict                  1.0.1                      py_0  
html5lib                  1.0.1                    py37_0  
hypothesis                5.5.4                      py_0  
icu                       58.2                 h4b95b61_1  
idna                      2.8                      py37_0  
imageio                   2.6.1                    py37_0  
imagesize                 1.2.0                      py_0  
importlib_metadata        1.5.0                    py37_0  
intel-openmp              2019.4                      233  
intervaltree              3.0.2                      py_0  
ipykernel                 5.1.4            py37h39e3cac_0  
ipython                   7.12.0           py37h5ca1d4c_0  
ipython_genutils          0.2.0                    py37_0  
ipywidgets                7.5.1                      py_0  
isort                     4.3.21                   py37_0  
itsdangerous              1.1.0                    py37_0  
jbig                      2.1                  h4d881f8_0  
jdcal                     1.4.1                      py_0  
jedi                      0.14.1                   py37_0  
jinja2                    2.11.1                     py_0  
joblib                    0.14.1                     py_0  
jpeg                      9b                   he5867d9_2  
json5                     0.9.1                      py_0  
jsonschema                3.2.0                    py37_0  
jupyter                   1.0.0                    py37_7  
jupyter_client            5.3.4                    py37_0  
jupyter_console           6.1.0                      py_0  
jupyter_core              4.6.1                    py37_0  
jupyterlab                1.2.6              pyhf63ae98_0  
jupyterlab_server         1.0.6                      py_0  
keyring                   21.1.0                   py37_0  
kiwisolver                1.1.0            py37h0a44026_0  
krb5                      1.17.1               hddcf347_0  
lazy-object-proxy         1.4.3            py37h1de35cc_0  
libarchive                3.3.3                h786848e_5  
libcurl                   7.68.0               h051b688_0  
libcxx                    4.0.1                hcfea43d_1  
libcxxabi                 4.0.1                hcfea43d_1  
libedit                   3.1.20181209         hb402a30_0  
libffi                    3.2.1                h475c297_4  
libgfortran               3.0.1                h93005f0_2  
libiconv                  1.15                 hdd342a3_7  
liblief                   0.9.0                h2a1bed3_2  
libpng                    1.6.37               ha441bb4_0  
libsodium                 1.0.16               h3efe00b_0  
libspatialindex           1.9.3                h0a44026_0  
libssh2                   1.9.0                ha12b0ac_1  
libtiff                   4.1.0                hcb84e12_0  
libxml2                   2.9.9                hf6e021a_1  
libxslt                   1.1.33               h33a18ac_0  
llvm-openmp               4.0.1                hcfea43d_1  
llvmlite                  0.31.0           py37h1341992_0  
locket                    0.2.0                    py37_1  
lxml                      4.5.0            py37hef8c89e_0  
lz4-c                     1.8.1.2              h1de35cc_0  
lzo                       2.10                 h362108e_2  
markupsafe                1.1.1            py37h1de35cc_0  
matplotlib                3.1.3                    py37_0  
matplotlib-base           3.1.3            py37h9aa3819_0  
mccabe                    0.6.1                    py37_1  
mistune                   0.8.4            py37h1de35cc_0  
mkl                       2019.4                      233  
mkl-service               2.3.0            py37hfbe908c_0  
mkl_fft                   1.0.15           py37h5e564d8_0  
mkl_random                1.1.0            py37ha771720_0  
mock                      4.0.1                      py_0  
more-itertools            8.2.0                      py_0  
mpc                       1.1.0                h6ef4df4_1  
mpfr                      4.0.1                h3018a27_3  
mpmath                    1.1.0                    py37_0  
msgpack-python            0.6.1            py37h04f5b5a_1  
multipledispatch          0.6.0                    py37_0  
navigator-updater         0.2.1                    py37_0  
nbconvert                 5.6.1                    py37_0  
nbformat                  5.0.4                      py_0  
ncurses                   6.2                  h0a44026_0  
networkx                  2.4                        py_0  
nltk                      3.4.5                    py37_0  
nose                      1.3.7                    py37_2  
notebook                  6.0.3                    py37_0  
numba                     0.48.0           py37h6c726b0_0  
numexpr                   2.7.1            py37hce01a72_0  
numpy                     1.18.1           py37h7241aed_0  
numpy-base                1.18.1           py37h6575580_1  
numpydoc                  0.9.2                      py_0  
olefile                   0.46                     py37_0  
openpyxl                  3.0.3                      py_0  
openssl                   1.1.1d               h1de35cc_4  
packaging                 20.1                       py_0  
pandas                    1.0.1            py37h6c726b0_0  
pandoc                    2.2.3.2                       0  
pandocfilters             1.4.2                    py37_1  
parso                     0.5.2                      py_0  
partd                     1.1.0                      py_0  
path                      13.1.0                   py37_0  
path.py                   12.4.0                        0  
pathlib2                  2.3.5                    py37_0  
pathtools                 0.1.2                      py_1  
patsy                     0.5.1                    py37_0  
pcre                      8.43                 h0a44026_0  
pep8                      1.7.1                    py37_0  
pexpect                   4.8.0                    py37_0  
pickleshare               0.7.5                    py37_0  
pillow                    7.0.0            py37h4655f20_0  
pip                       20.0.2                   py37_1  
pkginfo                   1.5.0.1                  py37_0  
pluggy                    0.13.1                   py37_0  
ply                       3.11                     py37_0  
prometheus_client         0.7.1                      py_0  
prompt_toolkit            3.0.3                      py_0  
psutil                    5.6.7            py37h1de35cc_0  
ptyprocess                0.6.0                    py37_0  
py                        1.8.1                      py_0  
py-lief                   0.9.0            py37h1413db1_2  
pycodestyle               2.5.0                    py37_0  
pycosat                   0.6.3            py37h1de35cc_0  
pycparser                 2.19                     py37_0  
pycrypto                  2.6.1            py37h1de35cc_9  
pycurl                    7.43.0.5         py37ha12b0ac_0  
pydocstyle                4.0.1                      py_0  
pyflakes                  2.1.1                    py37_0  
pygments                  2.5.2                      py_0  
pylint                    2.4.4                    py37_0  
pyodbc                    4.0.30           py37h0a44026_0  
pyopenssl                 19.1.0                   py37_0  
pyparsing                 2.4.6                      py_0  
pyqt                      5.9.2            py37h655552a_2  
pyrsistent                0.15.7           py37h1de35cc_0  
pysocks                   1.7.1                    py37_0  
pytables                  3.6.1            py37h5bccee9_0  
pytest                    5.3.5                    py37_0  
pytest-arraydiff          0.3              py37h39e3cac_0  
pytest-astropy            0.8.0                      py_0  
pytest-astropy-header     0.1.2                      py_0  
pytest-doctestplus        0.5.0                      py_0  
pytest-openfiles          0.4.0                      py_0  
pytest-remotedata         0.3.2                    py37_0  
python                    3.7.6                h359304d_2  
python-dateutil           2.8.1                      py_0  
python-jsonrpc-server     0.3.4                      py_0  
python-language-server    0.31.7                   py37_0  
python-libarchive-c       2.8                     py37_13  
python.app                2                       py37_10  
pytz                      2019.3                     py_0  
pywavelets                1.1.1            py37h1de35cc_0  
pyyaml                    5.3              py37h1de35cc_0  
pyzmq                     18.1.1           py37h0a44026_0  
qdarkstyle                2.8                        py_0  
qt                        5.9.7                h468cd18_1  
qtawesome                 0.6.1                      py_0  
qtconsole                 4.6.0                      py_1  
qtpy                      1.9.0                      py_0  
readline                  7.0                  h1de35cc_5  
requests                  2.22.0                   py37_1  
ripgrep                   11.0.2               he32d670_0  
rope                      0.16.0                     py_0  
rtree                     0.9.3                    py37_0  
ruamel_yaml               0.15.87          py37h1de35cc_0  
scikit-image              0.16.2           py37h6c726b0_0  
scikit-learn              0.22.1           py37h27c97d8_0  
scipy                     1.4.1            py37h9fa6033_0  
seaborn                   0.10.0                     py_0  
send2trash                1.5.0                    py37_0  
setuptools                46.0.0                   py37_0  
simplegeneric             0.8.1                    py37_2  
singledispatch            3.4.0.3                  py37_0  
sip                       4.19.8           py37h0a44026_0  
six                       1.14.0                   py37_0  
snappy                    1.1.7                he62c110_3  
snowballstemmer           2.0.0                      py_0  
sortedcollections         1.1.2                    py37_0  
sortedcontainers          2.1.0                    py37_0  
soupsieve                 1.9.5                    py37_0  
sphinx                    2.4.0                      py_0  
sphinxcontrib             1.0                      py37_1  
sphinxcontrib-applehelp   1.0.1                      py_0  
sphinxcontrib-devhelp     1.0.1                      py_0  
sphinxcontrib-htmlhelp    1.0.2                      py_0  
sphinxcontrib-jsmath      1.0.1                      py_0  
sphinxcontrib-qthelp      1.0.2                      py_0  
sphinxcontrib-serializinghtml 1.1.3                      py_0  
sphinxcontrib-websupport  1.2.0                      py_0  
spyder                    4.0.1                    py37_0  
spyder-kernels            1.8.1                    py37_0  
sqlalchemy                1.3.13           py37h1de35cc_0  
sqlite                    3.31.1               ha441bb4_0  
statsmodels               0.11.0           py37h1de35cc_0  
sympy                     1.5.1                    py37_0  
tbb                       2020.0               h04f5b5a_0  
tblib                     1.6.0                      py_0  
terminado                 0.8.3                    py37_0  
testpath                  0.4.4                      py_0  
tk                        8.6.8                ha441bb4_0  
toolz                     0.10.0                     py_0  
tornado                   6.0.3            py37h1de35cc_3  
tqdm                      4.42.1                     py_0  
traitlets                 4.3.3                    py37_0  
ujson                     1.35             py37h1de35cc_0  
unicodecsv                0.14.1                   py37_0  
unixodbc                  2.3.7                h1de35cc_0  
urllib3                   1.25.8                   py37_0  
watchdog                  0.10.2           py37h1de35cc_0  
wcwidth                   0.1.8                      py_0  
webencodings              0.5.1                    py37_1  
werkzeug                  1.0.0                      py_0  
wheel                     0.34.2                   py37_0  
widgetsnbextension        3.5.1                    py37_0  
wrapt                     1.11.2           py37h1de35cc_0  
wurlitzer                 2.0.0                    py37_0  
xlrd                      1.2.0                    py37_0  
xlsxwriter                1.2.7                      py_0  
xlwings                   0.17.1                   py37_0  
xlwt                      1.3.0                    py37_0  
xmltodict                 0.12.0                     py_0  
xz                        5.2.4                h1de35cc_4  
yaml                      0.1.7                hc338f04_2  
yapf                      0.28.0                     py_0  
zeromq                    4.3.1                h0a44026_3  
zict                      1.0.0                      py_0  
zipp                      2.2.0                      py_0  
zlib                      1.2.11               h1de35cc_3  
zstd                      1.3.7                h5bba6e5_0 



Details about conda and system ( conda info ):

$ conda info
    active environment : top
    active env location : /Users/sadeed/opt/anaconda3/envs/top
            shell level : 2
       user config file : /Users/sadeed/.condarc
 populated config files : /Users/sadeed/.condarc
                          /Users/sadeed/opt/anaconda3/envs/top/.condarc
          conda version : 4.8.3
    conda-build version : 3.18.11
         python version : 3.7.6.final.0
       virtual packages : __osx=10.15.4
       base environment : /Users/sadeed/opt/anaconda3  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/osx-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /Users/sadeed/opt/anaconda3/pkgs
                          /Users/sadeed/.conda/pkgs
       envs directories : /Users/sadeed/opt/anaconda3/envs
                          /Users/sadeed/.conda/envs
               platform : osx-64
             user-agent : conda/4.8.3 requests/2.22.0 CPython/3.7.6 Darwin/19.4.0 OSX/10.15.4
                UID:GID : 501:20
             netrc file : /Users/sadeed/.netrc
           offline mode : False

Creating a new env worked for me as per jay

conda create --name myenv
conda activate myenv

Hi guys. I know I am a little late in the discussion but this worked for me 100% of the time I faced this issue -
Whenever this happened it was unfortunate as I could not get any packages to set up from the navigator anymore. But what I could do is instead open up the Command Prompt from the navigator and install the package using conda-forge and then updating the index, it showed up correctly! For example, to install spacy after this happens, you can open up the command prompt and type -
py conda install -c conda-forge spacy
And this will let you install spacy without any hassle. Then you can update your index in your selected environment and spacy will show up as installed! Done.

@mind-matrix my issues (and I believe most of the others) have always been with the command line.

This issue is a showstopper for me.
The easiest way to reproduce the problem without interference from local context:

docker run -it continuumio/anaconda3 conda install -c conda-forge airflow
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Solving environment: ...working... failed with repodata from current_repodata.json, will retry with next repodata source.
[…]

When the install process is started in verbose mode (-vv), you can see how the resolve process is looping

[…]
DEBUG conda.resolve:filter_group(633): conda-package-handling: pruned from 17 -> 1
DEBUG conda.resolve:filter_group(633): conda: pruned from 16 -> 1
DEBUG conda.resolve:filter_group(633): anaconda-navigator: pruned from 8 -> 1
DEBUG conda.resolve:filter_group(633): xmltodict: pruned from 9 -> 1
DEBUG conda.resolve:filter_group(633): conda-verify: pruned from 15 -> 1
DEBUG conda.resolve:filter_group(633): backports.functools_lru_cache: pruned from 6 -> 1
DEBUG conda.resolve:filter_group(633): backports.tempfile: pruned from 3 -> 1
DEBUG conda.resolve:filter_group(633): backports.weakref: pruned from 21 -> 1
DEBUG conda.resolve:filter_group(633): navigator-updater: pruned from 4 -> 1
DEBUG conda.resolve:filter_group(633): _ipyw_jlab_nb_ext_conf: pruned from 7 -> 1
DEBUG conda.resolve:filter_group(633): conda-env: pruned from 4 -> 1
DEBUG conda.resolve:filter_group(633): airflow: pruned from 16 -> 0
DEBUG conda.common._logic:_run_sat(601): Invoking SAT with clause count: 2
DEBUG conda.resolve:_get_sat_solver_cls(60): Using SAT solver interface 'pycosat'.
DEBUG conda.resolve:gen_clauses(914): gen_clauses returning with clause count: 2263
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 2263
DEBUG conda.resolve:__init__(110): restricting to unmanageable packages: __glibc
DEBUG conda.resolve:gen_clauses(914): gen_clauses returning with clause count: 63232
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 63232
DEBUG conda.common._logic:_run_sat(601): Invoking SAT with clause count: 63233
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 63232
DEBUG conda.common._logic:_run_sat(601): Invoking SAT with clause count: 63233
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 63233
DEBUG conda.common._logic:_run_sat(601): Invoking SAT with clause count: 63235
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 63235
DEBUG conda.common._logic:_run_sat(601): Invoking SAT with clause count: 63238
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 63238
DEBUG conda.common._logic:_run_sat(601): Invoking SAT with clause count: 63242
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 63242
DEBUG conda.common._logic:_run_sat(601): Invoking SAT with clause count: 63247
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 63247
DEBUG conda.common._logic:_run_sat(601): Invoking SAT with clause count: 63253
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 63253
DEBUG conda.common._logic:_run_sat(601): Invoking SAT with clause count: 63260
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 63260
DEBUG conda.common._logic:_run_sat(601): Invoking SAT with clause count: 63268
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 63268
>>CTRL+C<<
^Cfailed with initial frozen solve. Retrying with flexible solve.
Traceback (most recent call last):
  File "/opt/conda/lib/python3.7/site-packages/conda/exceptions.py", line 1079, in __call__
    return func(*args, **kwargs)
  File "/opt/conda/lib/python3.7/site-packages/conda/cli/main.py", line 84, in _main
    exit_code = do_call(args, p)
  File "/opt/conda/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 82, in do_call
    return getattr(module, func_name)(args, parser)
  File "/opt/conda/lib/python3.7/site-packages/conda/cli/main_install.py", line 20, in execute
    install(args, parser, 'install')
  File "/opt/conda/lib/python3.7/site-packages/conda/cli/install.py", line 265, in install
    should_retry_solve=(_should_retry_unfrozen or repodata_fn != repodata_fns[-1]),
  File "/opt/conda/lib/python3.7/site-packages/conda/core/solve.py", line 117, in solve_for_transaction
    should_retry_solve)
  File "/opt/conda/lib/python3.7/site-packages/conda/core/solve.py", line 158, in solve_for_diff
    force_remove, should_retry_solve)
  File "/opt/conda/lib/python3.7/site-packages/conda/core/solve.py", line 275, in solve_final_state
    ssc = self._add_specs(ssc)
  File "/opt/conda/lib/python3.7/site-packages/conda/core/solve.py", line 558, in _add_specs
    (_.to_match_spec() for _ in ssc.prefix_data.iter_records()))), self.specs_to_add
  File "/opt/conda/lib/python3.7/site-packages/conda/resolve.py", line 1108, in get_conflicting_specs
    explicit_specs=explicit_specs))
  File "/opt/conda/lib/python3.7/site-packages/conda/common/logic.py", line 284, in minimal_unsatisfiable_subset
    if sat(working_set | {spec, }, True) is None:
  File "/opt/conda/lib/python3.7/site-packages/conda/resolve.py", line 1092, in mysat
    return C.sat(constraints, add_if)
  File "/opt/conda/lib/python3.7/site-packages/conda/common/logic.py", line 226, in sat
    solution = self._clauses.sat(additional=additional, includeIf=includeIf, limit=limit)
  File "/opt/conda/lib/python3.7/site-packages/conda/common/_logic.py", line 639, in sat
    solution = self._run_sat(self.m, limit=limit)
  File "/opt/conda/lib/python3.7/site-packages/conda/common/_logic.py", line 602, in _run_sat
    solution = self._sat_solver.run(m, limit=limit)
  File "/opt/conda/lib/python3.7/site-packages/conda/common/_logic.py", line 156, in run
    sat_solution = self.invoke(solver)
  File "/opt/conda/lib/python3.7/site-packages/conda/common/_logic.py", line 189, in invoke
    sat_solution = next(iter_sol)
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/conda/bin/conda", line 13, in <module>
    sys.exit(main())
  File "/opt/conda/lib/python3.7/site-packages/conda/cli/main.py", line 150, in main
    return conda_exception_handler(_main, *args, **kwargs)
  File "/opt/conda/lib/python3.7/site-packages/conda/exceptions.py", line 1371, in conda_exception_handler
    return_value = exception_handler(func, *args, **kwargs)
  File "/opt/conda/lib/python3.7/site-packages/conda/exceptions.py", line 1082, in __call__
    return self.handle_exception(exc_val, exc_tb)
  File "/opt/conda/lib/python3.7/site-packages/conda/exceptions.py", line 1122, in handle_exception
    self._print_conda_exception(CondaError("KeyboardInterrupt"), _format_exc())
  File "/opt/conda/lib/python3.7/site-packages/conda/exceptions.py", line 1133, in _print_conda_exception
    print_conda_exception(exc_val, exc_tb)
  File "/opt/conda/lib/python3.7/site-packages/conda/exceptions.py", line 1047, in print_conda_exception
    print(_format_exc(exc_val, exc_tb), file=sys.stderr)
  File "/opt/conda/lib/python3.7/site-packages/conda/exceptions.py", line 1069, in _format_exc
    formatted_exception = format_exception(exc_type, exc_val, exc_tb)
  File "/opt/conda/lib/python3.7/traceback.py", line 121, in format_exception
    type(value), value, tb, limit=limit).format(chain=chain))
  File "/opt/conda/lib/python3.7/traceback.py", line 508, in __init__
    capture_locals=capture_locals)
  File "/opt/conda/lib/python3.7/traceback.py", line 344, in extract
    for f, lineno in frame_gen:
  File "/opt/conda/lib/python3.7/traceback.py", line 309, in walk_tb
    yield tb.tb_frame, tb.tb_lineno
AttributeError: 'str' object has no attribute 'tb_frame'

With that problem it is not possible to use Anaconda's conda.

Are you on Windows? Coz https://anaconda.org/conda-forge/airflow shows labels for linux and osx only.

@realknorke I had issues with conda as well and didn't want to use pip to fix the problem.
After trying many advice from Conda's GitHub page, I found out that the issue was not being able to find dependencies for the python version I had installed. Creating new environment help but with one more argument for python version.

conda create -n branch-env python=3.7
conda activate branch-env
conda install package-name

Are you on Windows? Coz https://anaconda.org/conda-forge/airflow shows labels for linux and osx only.

Linux. I don't do computer games…

@ahmadsadeed
It seems to work using the env. Its very slow but the installation succeeded. Thanks. :+1:

pip is not an option for various reasons, at least the following:

  • this issue tracker is for conda and we clearly found a bug
  • pip installs an older version
  • the problem is not restricted to the airflow package
  • https://www.anaconda.com/blog/understanding-conda-and-pip conda seems to be superior :)

I was having this issue also. What worked for me was

conda update conda

I fixed the problem by modifying my .condarc as follows:

  • Changed:
    channels: <ul> <li>conda-forge</li> <li>defaults<br /> <code>md5-c57f0ce1b3e9103687b7b63e7e9002d5</code><br /> channels:</li> <li>defaults</li> <li>conda-forge<br />

  • and changed channel_priority: strict to channel_priority: flexible
  • This problem confused me today. I clean the .condarc file and rewrite channels to it. Then, sloved it.

    After trying many advice from Conda's GitHub page, I found out that the issue was not being able to find dependencies for the python version I had installed. Creating new environment help but with one more argument for python version.

    conda create -n branch-env python=3.7
    conda activate branch-env
    conda install package-name
    

    @ahmadsadeed this was the solution that almost worked for me after all (the trying of everything suggested here and dedicated a few hours to this problem). Thanks!
    More precisely, I didn't need to create a new environment. I just activated an already existing one, which had been created with a specific python version.

    HOWEVER, the problem is still not completely gone.
    I was able to install in this environment. But:

    1. I still can't install in the base environment.
    2. Updating anaconda, not from the command line but by clicking on the relevant pop-up message, still gets stuck (stuck message: "Updating package on root".)

    Will this issue ever get resolved? Apparently it has been wasting the time of several humans for some time now :)

    Update the Conda VERSION!!! It works!!!
    I met the same problem. Maybe it is a long time for me not using conda.... I tried the methods mentioned above, but all didn't work. Then I repower my computer, and try to use conda to install an env, it warining me "A new conda version exist." So I update the conda version, then everything goes well~~

    @realknorke I had issues with conda as well and didn't want to use pip to fix the problem.
    After trying many advice from Conda's GitHub page, I found out that the issue was not being able to find dependencies for the python version I had installed. Creating new environment help but with one more argument for python version.

    conda create -n branch-env python=3.7
    conda activate branch-env
    conda install package-name
    

    This worked for me!

    After 2 years I thought I'd try Anaconda again, and this happens!

    First I tried:
    conda config --set channel_priority strict

    Nothing changed, so I unistalled conda and reinstalled it but still, I am not able to install any packages altough using conda instaall -c conda- forge packagename

    Herers some outputs:
    conda config --get channels
    --add channels 'defaults' # lowest priority
    --add channels 'conda-forge' # highest priority

    conda --version
    conda 4.8.3

    Yesterday everything worked just fine...

    Removing the conda-forge channel appears to remove this behavior and it continues to work after add conda-forge.

    The following steps worked to resolve the issue.

    1. conda config --remove channels conda-forge
    2. conda config --add channels conda-forge

    No other changes were required to fix this on my system.

    Thank you @EricThomson and @solegalli for figuring this out!

    It does a little longer than normal but it worked for me.

    Adding more RAM helps I switched from 0.5 GB to 8GB RAM

    I removed and added conda forge as suggested by @EricThomson and everything is now blazing smooth. 👍

    This has been bugging me for weeks. It wasn't until I google 'hangs on solving environment' that I found this thread. Phew. Thanks guys. :)

    [Update]
    This problem usually happens when you try to update your respective operating system Linux/Windows due to improper mismatch linking of anaconda3 resources.
    You need to update or I would say uninstall and then reinstall anaconda3.
    Take a deep breath and it will work :)

    I had the same issue when adding conda-forge channel and i fixed it by changing channel-priority to "flexible"
    conda config --describe channel_priority
    conda config --set channel_priority flexible
    After that conda update conda woked fine again. I hope it helps.

    conda config --set channel_priority flexible worked for me!

    It's also worked for me!!

    As suggested by @solegalli, I was able to fix it by removing the conda-forge channel. To see if you have conda-forge installed, you can open your configuration file in .condarc or just enter conda config --get channels at your conda prompt. I removed the conda-forge line from .condarc, and I'm no longer getting the error. You can also enter conda config --remove channels conda-forge to remove it.

    Strangely, after removing the channel, I've added it back and the error has not returned.

    Edit: Note I did uninstall anaconda yesterday before trying this today, so there is a chance that was important. But the error did not disappear until I removed the channel.

    really interesting, it works perfect! thank you very much

    Was this page helpful?
    0 / 5 - 0 ratings