Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install on mac m1 encountered with Could not solve for environment specs #255

Open
1 task done
Tracked by #568
Maydaytyh opened this issue Jan 25, 2022 · 13 comments
Open
1 task done
Tracked by #568
Labels
condarc Previous condarc files hindering the installation question Further information is requested

Comments

@Maydaytyh
Copy link

Maydaytyh commented Jan 25, 2022

Issue: Hi, I have installed conda on my m1 mac before, then I install it with the newest script, but I encountered the following error, can you help me?

image


@hmaarrfk
Copy link
Contributor

I'm not sure "what" exactly the newest script is. Can you please be explicit and state the name of the file you used (and likely when you downloaded it).

Finally, can you provide us the output of the command:

cat ~/.condarc 

PS. I understand that you think the issue is debuggable within your screenshot, but often clues to the errors happen much before the loudest error. Could you please copy and paste the full error log, along with the command you used to attempt to "install"

@gongx030
Copy link

gongx030 commented Feb 8, 2022

I had the similar problem with M1 macbook pro (16-inch 2021):

% bash ~/Desktop/Miniforge3-4.11.0-1-MacOSX-arm64.sh  -u

Welcome to Miniforge3 4.11.0-1
...
Unpacking payload ...
Extracting "python_abi-3.9-2_cp39.tar.bz2"
Extracting "idna-3.3-pyhd8ed1ab_0.tar.bz2"
Extracting "six-1.16.0-pyh6c4a22f_0.tar.bz2"
Extracting "charset-normalizer-2.0.11-pyhd8ed1ab_0.tar.bz2"
Extracting "xz-5.2.5-h642e427_1.tar.bz2"
Extracting "wheel-0.37.1-pyhd8ed1ab_0.tar.bz2"
Extracting "pip-22.0.3-pyhd8ed1ab_0.tar.bz2"
Extracting "pycparser-2.21-pyhd8ed1ab_0.tar.bz2"
Extracting "setuptools-60.7.1-py39h2804cbe_0.tar.bz2"
Extracting "pycosat-0.6.3-py39h5161555_1009.tar.bz2"
Extracting "ncurses-6.3-hc470f4d_0.tar.bz2"
Extracting "libzlib-1.2.11-hee7b306_1013.tar.bz2"
Extracting "ca-certificates-2021.10.8-h4653dfc_0.tar.bz2"
Extracting "zlib-1.2.11-hee7b306_1013.tar.bz2"
Extracting "colorama-0.4.4-pyh9f0ad1d_0.tar.bz2"
Extracting "sqlite-3.37.0-h72a2b83_0.tar.bz2"
Extracting "urllib3-1.26.8-pyhd8ed1ab_1.tar.bz2"
Extracting "tzdata-2021e-he74cb21_0.tar.bz2"
Extracting "requests-2.27.1-pyhd8ed1ab_0.tar.bz2"
Extracting "tqdm-4.62.3-pyhd8ed1ab_0.tar.bz2"
Extracting "pyopenssl-22.0.0-pyhd8ed1ab_0.tar.bz2"
Extracting "ruamel_yaml-0.15.80-py39h5161555_1006.tar.bz2"
Extracting "conda-4.11.0-py39h2804cbe_0.tar.bz2"
Extracting "pysocks-1.7.1-py39h2804cbe_4.tar.bz2"
Extracting "certifi-2021.10.8-py39h2804cbe_1.tar.bz2"
Extracting "conda-package-handling-1.7.3-py39h5161555_1.tar.bz2"
Extracting "readline-8.1-hedafd6a_0.tar.bz2"
Extracting "bzip2-1.0.8-h3422bc3_4.tar.bz2"
Extracting "libffi-3.4.2-h3422bc3_5.tar.bz2"
Extracting "cffi-1.15.0-py39h52b1de0_0.tar.bz2"
Extracting "tk-8.6.11-he1e0b03_1.tar.bz2"
Extracting "python-3.9.10-hd16f9c5_2_cpython.tar.bz2"
Extracting "brotlipy-0.7.0-py39h5161555_1003.tar.bz2"
Extracting "yaml-0.2.5-h3422bc3_2.tar.bz2"
Extracting "openssl-1.1.1l-h3422bc3_0.tar.bz2"
Extracting "cryptography-36.0.1-py39hfb8cd70_0.tar.bz2"

                                           __
          __  ______ ___  ____ _____ ___  / /_  ____ _
         / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
        / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
       / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
      /_/

conda-forge/noarch       Using cache
Encountered problems while solving:
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by sqlite-3.37.0-h72a2b83_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0

ERROR   Could not solve for environment specs

Also tried to install tensorflow-deps through miniconda on macos-arm64. The installation of miniconda had no issues, however, the installation of tensorflow-deps had a lot of different conflicting issues.

@isuruf
Copy link
Member

isuruf commented Feb 8, 2022

Can you try with Miniforge3-4.11.0-0-MacOSX-arm64.sh ?

@gongx030
Copy link

gongx030 commented Feb 8, 2022

4.11.0-0 also have similar error:

gongx030@D20220246 [~] % bash ~/Desktop/Miniforge3-4.11.0-0-MacOSX-arm64.sh -u

Welcome to Miniforge3 4.11.0-0

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
Miniforge installer code uses BSD-3-Clause license as stated below.

Binary packages that come with it have their own licensing terms
and by installing miniforge you agree to the licensing terms of individual
packages as well. They include different OSI-approved licenses including
the GNU General Public License and can be found in pkgs/<pkg-name>/info/licenses
folders.

Miniforge installer comes with a boostrapping executable that is used
when installing miniforge and is deleted after miniforge is installed.
The bootstrapping executable uses micromamba, cli11, cpp-filesystem,
curl, c-ares, krb5, libarchive, libev, lz4, nghttp2, openssl, libsolv,
nlohmann-json, reproc and zstd which are licensed under BSD-3-Clause,
MIT and OpenSSL licenses. Licenses and copyright notices of these
projects can be found at the following URL.
https://github.com/conda-forge/micromamba-feedstock/tree/master/recipe.

=============================================================================

Copyright (c) 2019-2021, conda-forge
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Do you accept the license terms? [yes|no]
[no] >>> yes

Miniforge3 will now be installed into this location:
/Users/gongx030/miniforge3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

[/Users/gongx030/miniforge3] >>>
PREFIX=/Users/gongx030/miniforge3
Unpacking payload ...
Extracting "python_abi-3.9-2_cp39.tar.bz2"
Extracting "idna-3.3-pyhd8ed1ab_0.tar.bz2"
Extracting "six-1.16.0-pyh6c4a22f_0.tar.bz2"
Extracting "conda-4.10.3-py39h2804cbe_4.tar.bz2"
Extracting "yaml-0.2.5-h642e427_0.tar.bz2"
Extracting "charset-normalizer-2.0.11-pyhd8ed1ab_0.tar.bz2"
Extracting "xz-5.2.5-h642e427_1.tar.bz2"
Extracting "charset-normalizer-2.0.9-pyhd8ed1ab_0.tar.bz2"
Extracting "wheel-0.37.1-pyhd8ed1ab_0.tar.bz2"
Extracting "pyopenssl-21.0.0-pyhd8ed1ab_0.tar.bz2"
Extracting "python-3.9.7-h54d631c_3_cpython.tar.bz2"
Extracting "pip-22.0.3-pyhd8ed1ab_0.tar.bz2"
Extracting "pycparser-2.21-pyhd8ed1ab_0.tar.bz2"
Extracting "setuptools-60.7.1-py39h2804cbe_0.tar.bz2"
Extracting "wheel-0.37.0-pyhd8ed1ab_1.tar.bz2"
Extracting "urllib3-1.26.7-pyhd8ed1ab_0.tar.bz2"
Extracting "pycosat-0.6.3-py39h5161555_1009.tar.bz2"
Extracting "ncurses-6.3-hc470f4d_0.tar.bz2"
Extracting "libzlib-1.2.11-hee7b306_1013.tar.bz2"
Extracting "pip-21.3.1-pyhd8ed1ab_0.tar.bz2"
Extracting "ca-certificates-2021.10.8-h4653dfc_0.tar.bz2"
Extracting "zlib-1.2.11-hee7b306_1013.tar.bz2"
Extracting "colorama-0.4.4-pyh9f0ad1d_0.tar.bz2"
Extracting "sqlite-3.37.0-h72a2b83_0.tar.bz2"
Extracting "urllib3-1.26.8-pyhd8ed1ab_1.tar.bz2"
Extracting "charset-normalizer-2.0.8-pyhd8ed1ab_0.tar.bz2"
Extracting "tzdata-2021e-he74cb21_0.tar.bz2"
Extracting "requests-2.27.1-pyhd8ed1ab_0.tar.bz2"
Extracting "tqdm-4.62.3-pyhd8ed1ab_0.tar.bz2"
Extracting "pyopenssl-22.0.0-pyhd8ed1ab_0.tar.bz2"
Extracting "ruamel_yaml-0.15.80-py39h5161555_1006.tar.bz2"
Extracting "conda-4.11.0-py39h2804cbe_0.tar.bz2"
Extracting "idna-3.1-pyhd3deb0d_0.tar.bz2"
Extracting "cryptography-36.0.0-py39hfb8cd70_0.tar.bz2"
Extracting "pysocks-1.7.1-py39h2804cbe_4.tar.bz2"
Extracting "requests-2.26.0-pyhd8ed1ab_1.tar.bz2"
Extracting "setuptools-59.4.0-py39h2804cbe_0.tar.bz2"
Extracting "certifi-2021.10.8-py39h2804cbe_1.tar.bz2"
Extracting "conda-package-handling-1.7.3-py39h5161555_1.tar.bz2"
Extracting "readline-8.1-hedafd6a_0.tar.bz2"
Extracting "bzip2-1.0.8-h3422bc3_4.tar.bz2"
Extracting "libffi-3.4.2-h3422bc3_5.tar.bz2"
Extracting "cffi-1.15.0-py39h52b1de0_0.tar.bz2"
Extracting "tk-8.6.11-he1e0b03_1.tar.bz2"
Extracting "python-3.9.10-hd16f9c5_2_cpython.tar.bz2"
Extracting "brotlipy-0.7.0-py39h5161555_1003.tar.bz2"
Extracting "yaml-0.2.5-h3422bc3_2.tar.bz2"
Extracting "openssl-1.1.1l-h3422bc3_0.tar.bz2"
Extracting "cryptography-36.0.1-py39hfb8cd70_0.tar.bz2"
Extracting "ncurses-6.2-h9aa5885_4.tar.bz2"

                                           __
          __  ______ ___  ____ _____ ___  / /_  ____ _
         / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
        / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
       / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
      /_/

conda-forge/noarch       Using cache
Encountered problems while solving:
  - nothing provides requested python 3.9.7 h54d631c_3_cpython
  - nothing provides requested yaml 0.2.5 h642e427_0
  - nothing provides requested wheel 0.37.0 pyhd8ed1ab_1
  - nothing provides requested cryptography 36.0.0 py39hfb8cd70_0
  - nothing provides requested pyopenssl 21.0.0 pyhd8ed1ab_0
  - nothing provides requested conda 4.11.0 py39h2804cbe_0
  - nothing provides ncurses >=6.3,<7.0a0 needed by python-3.9.10-hd16f9c5_2_cpython
  - nothing provides ncurses >=6.3,<7.0a0 needed by python-3.9.10-hd16f9c5_2_cpython
  - nothing provides ncurses >=6.3,<7.0a0 needed by python-3.9.10-hd16f9c5_2_cpython
  - nothing provides ncurses >=6.3,<7.0a0 needed by python-3.9.10-hd16f9c5_2_cpython
  - nothing provides ncurses >=6.3,<7.0a0 needed by python-3.9.10-hd16f9c5_2_cpython
  - nothing provides ncurses >=6.3,<7.0a0 needed by python-3.9.10-hd16f9c5_2_cpython
  - nothing provides ncurses >=6.3,<7.0a0 needed by python-3.9.10-hd16f9c5_2_cpython
  - nothing provides ncurses >=6.3,<7.0a0 needed by python-3.9.10-hd16f9c5_2_cpython
  - nothing provides ncurses >=6.3,<7.0a0 needed by python-3.9.10-hd16f9c5_2_cpython
  - nothing provides ncurses >=6.3,<7.0a0 needed by python-3.9.10-hd16f9c5_2_cpython
  - nothing provides ncurses >=6.3,<7.0a0 needed by python-3.9.10-hd16f9c5_2_cpython
  - nothing provides ncurses >=6.3,<7.0a0 needed by python-3.9.10-hd16f9c5_2_cpython
  - nothing provides ncurses >=6.3,<7.0a0 needed by python-3.9.10-hd16f9c5_2_cpython
  - nothing provides ncurses >=6.3,<7.0a0 needed by python-3.9.10-hd16f9c5_2_cpython
  - nothing provides ncurses >=6.3,<7.0a0 needed by python-3.9.10-hd16f9c5_2_cpython
  - nothing provides ncurses >=6.3,<7.0a0 needed by python-3.9.10-hd16f9c5_2_cpython
  - nothing provides ncurses >=6.3,<7.0a0 needed by python-3.9.10-hd16f9c5_2_cpython
  - nothing provides ncurses >=6.3,<7.0a0 needed by python-3.9.10-hd16f9c5_2_cpython

ERROR   Could not solve for environment specs

I tried some different built and the only one that can be successfully installed on my mac is Mambaforge-4.10.3-10-MacOSX-arm64.sh. I was able to go through the steps here: https://developer.apple.com/metal/tensorflow-plugin/. However, it failed when running import tensorflow as tf, with error like below:

Python 3.9.7 | packaged by conda-forge | (default, Sep 29 2021, 19:24:02)
[Clang 11.1.0 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
  File "/Users/gongx030/mambaforge/lib/python3.9/site-packages/numpy/core/__init__.py", line 22, in <module>
    from . import multiarray
  File "/Users/gongx030/mambaforge/lib/python3.9/site-packages/numpy/core/multiarray.py", line 12, in <module>
    from . import overrides
  File "/Users/gongx030/mambaforge/lib/python3.9/site-packages/numpy/core/overrides.py", line 7, in <module>
    from numpy.core._multiarray_umath import (
ImportError: dlopen(/Users/gongx030/mambaforge/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-darwin.so, 0x0002): Library not loaded: @rpath/libcblas.3.dylib
  Referenced from: /Users/gongx030/mambaforge/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-darwin.so
  Reason: tried: '/Users/gongx030/mambaforge/lib/libcblas.3.dylib' (no such file), '/Users/gongx030/mambaforge/lib/libcblas.3.dylib' (no such file), '/Users/gongx030/mambaforge/lib/python3.9/site-packages/numpy/core/../../../../libcblas.3.dylib' (no such file), '/Users/gongx030/mambaforge/lib/libcblas.3.dylib' (no such file), '/Users/gongx030/mambaforge/lib/libcblas.3.dylib' (no such file), '/Users/gongx030/mambaforge/lib/python3.9/site-packages/numpy/core/../../../../libcblas.3.dylib' (no such file), '/Users/gongx030/mambaforge/lib/libcblas.3.dylib' (no such file), '/Users/gongx030/mambaforge/bin/../lib/libcblas.3.dylib' (no such file), '/Users/gongx030/mambaforge/lib/libcblas.3.dylib' (no such file), '/Users/gongx030/mambaforge/bin/../lib/libcblas.3.dylib' (no such file), '/usr/local/lib/libcblas.3.dylib' (no such file), '/usr/lib/libcblas.3.dylib' (no such file)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/gongx030/mambaforge/lib/python3.9/site-packages/tensorflow/__init__.py", line 41, in <module>
    from tensorflow.python.tools import module_util as _module_util
  File "/Users/gongx030/mambaforge/lib/python3.9/site-packages/tensorflow/python/__init__.py", line 40, in <module>
    from tensorflow.python.eager import context
  File "/Users/gongx030/mambaforge/lib/python3.9/site-packages/tensorflow/python/eager/context.py", line 29, in <module>
    import numpy as np
  File "/Users/gongx030/mambaforge/lib/python3.9/site-packages/numpy/__init__.py", line 140, in <module>
    from . import core
  File "/Users/gongx030/mambaforge/lib/python3.9/site-packages/numpy/core/__init__.py", line 48, in <module>
    raise ImportError(msg)
ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  * The Python version is: Python3.9 from "/Users/gongx030/mambaforge/bin/python"
  * The NumPy version is: "1.19.5"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: dlopen(/Users/gongx030/mambaforge/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-darwin.so, 0x0002): Library not loaded: @rpath/libcblas.3.dylib
  Referenced from: /Users/gongx030/mambaforge/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-darwin.so
  Reason: tried: '/Users/gongx030/mambaforge/lib/libcblas.3.dylib' (no such file), '/Users/gongx030/mambaforge/lib/libcblas.3.dylib' (no such file), '/Users/gongx030/mambaforge/lib/python3.9/site-packages/numpy/core/../../../../libcblas.3.dylib' (no such file), '/Users/gongx030/mambaforge/lib/libcblas.3.dylib' (no such file), '/Users/gongx030/mambaforge/lib/libcblas.3.dylib' (no such file), '/Users/gongx030/mambaforge/lib/python3.9/site-packages/numpy/core/../../../../libcblas.3.dylib' (no such file), '/Users/gongx030/mambaforge/lib/libcblas.3.dylib' (no such file), '/Users/gongx030/mambaforge/bin/../lib/libcblas.3.dylib' (no such file), '/Users/gongx030/mambaforge/lib/libcblas.3.dylib' (no such file), '/Users/gongx030/mambaforge/bin/../lib/libcblas.3.dylib' (no such file), '/usr/local/lib/libcblas.3.dylib' (no such file), '/usr/lib/libcblas.3.dylib' (no such file)

@mattfack
Copy link

mattfack commented Feb 8, 2022

Hi, as reported here, if you already have conda-related stuff installed on your mac, you might encounter some problems.
I was able to update conda on my M1 mac just following what xhochy suggested.
Hope this helps

@gongx030
Copy link

Hi, as reported here, if you already have conda-related stuff installed on your mac, you might encounter some problems. I was able to update conda on my M1 mac just following what xhochy suggested. Hope this helps

@mattfack Thanks for your suggestions. Removing ~/miniforge and reinstall everything works for me.

gongx030@D20220246 [~] % bash ~/Desktop/Miniforge3-4.11.0-0-MacOSX-arm64.sh

Welcome to Miniforge3 4.11.0-0

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
Miniforge installer code uses BSD-3-Clause license as stated below.

Binary packages that come with it have their own licensing terms
and by installing miniforge you agree to the licensing terms of individual
packages as well. They include different OSI-approved licenses including
the GNU General Public License and can be found in pkgs/<pkg-name>/info/licenses
folders.

Miniforge installer comes with a boostrapping executable that is used
when installing miniforge and is deleted after miniforge is installed.
The bootstrapping executable uses micromamba, cli11, cpp-filesystem,
curl, c-ares, krb5, libarchive, libev, lz4, nghttp2, openssl, libsolv,
nlohmann-json, reproc and zstd which are licensed under BSD-3-Clause,
MIT and OpenSSL licenses. Licenses and copyright notices of these
projects can be found at the following URL.
https://github.com/conda-forge/micromamba-feedstock/tree/master/recipe.

=============================================================================

Copyright (c) 2019-2021, conda-forge
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Do you accept the license terms? [yes|no]
[no] >>> yes

Miniforge3 will now be installed into this location:
/Users/gongx030/miniforge3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

[/Users/gongx030/miniforge3] >>>
PREFIX=/Users/gongx030/miniforge3
Unpacking payload ...
Extracting "python_abi-3.9-2_cp39.tar.bz2"
Extracting "six-1.16.0-pyh6c4a22f_0.tar.bz2"
Extracting "yaml-0.2.5-h642e427_0.tar.bz2"
Extracting "xz-5.2.5-h642e427_1.tar.bz2"
Extracting "charset-normalizer-2.0.9-pyhd8ed1ab_0.tar.bz2"
Extracting "pyopenssl-21.0.0-pyhd8ed1ab_0.tar.bz2"
Extracting "python-3.9.7-h54d631c_3_cpython.tar.bz2"
Extracting "pycparser-2.21-pyhd8ed1ab_0.tar.bz2"
Extracting "wheel-0.37.0-pyhd8ed1ab_1.tar.bz2"
Extracting "urllib3-1.26.7-pyhd8ed1ab_0.tar.bz2"
Extracting "pycosat-0.6.3-py39h5161555_1009.tar.bz2"
Extracting "libzlib-1.2.11-hee7b306_1013.tar.bz2"
Extracting "pip-21.3.1-pyhd8ed1ab_0.tar.bz2"
Extracting "ca-certificates-2021.10.8-h4653dfc_0.tar.bz2"
Extracting "zlib-1.2.11-hee7b306_1013.tar.bz2"
Extracting "colorama-0.4.4-pyh9f0ad1d_0.tar.bz2"
Extracting "sqlite-3.37.0-h72a2b83_0.tar.bz2"
Extracting "tzdata-2021e-he74cb21_0.tar.bz2"
Extracting "tqdm-4.62.3-pyhd8ed1ab_0.tar.bz2"
Extracting "ruamel_yaml-0.15.80-py39h5161555_1006.tar.bz2"
Extracting "conda-4.11.0-py39h2804cbe_0.tar.bz2"
Extracting "idna-3.1-pyhd3deb0d_0.tar.bz2"
Extracting "cryptography-36.0.0-py39hfb8cd70_0.tar.bz2"
Extracting "pysocks-1.7.1-py39h2804cbe_4.tar.bz2"
Extracting "requests-2.26.0-pyhd8ed1ab_1.tar.bz2"
Extracting "setuptools-59.4.0-py39h2804cbe_0.tar.bz2"
Extracting "certifi-2021.10.8-py39h2804cbe_1.tar.bz2"
Extracting "conda-package-handling-1.7.3-py39h5161555_1.tar.bz2"
Extracting "readline-8.1-hedafd6a_0.tar.bz2"
Extracting "libffi-3.4.2-h3422bc3_5.tar.bz2"
Extracting "cffi-1.15.0-py39h52b1de0_0.tar.bz2"
Extracting "tk-8.6.11-he1e0b03_1.tar.bz2"
Extracting "brotlipy-0.7.0-py39h5161555_1003.tar.bz2"
Extracting "openssl-1.1.1l-h3422bc3_0.tar.bz2"
Extracting "ncurses-6.2-h9aa5885_4.tar.bz2"

                                           __
          __  ______ ___  ____ _____ ___  / /_  ____ _
         / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
        / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
       / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
      /_/


Transaction

  Prefix: /Users/gongx030/miniforge3

  Updating specs:

   - python==3.9.7=h54d631c_3_cpython
   - ca-certificates==2021.10.8=h4653dfc_0
   - libffi==3.4.2=h3422bc3_5
   - libzlib==1.2.11=hee7b306_1013
   - ncurses==6.2=h9aa5885_4
   - tzdata==2021e=he74cb21_0
   - xz==5.2.5=h642e427_1
   - yaml==0.2.5=h642e427_0
   - openssl==1.1.1l=h3422bc3_0
   - readline==8.1=hedafd6a_0
   - zlib==1.2.11=hee7b306_1013
   - sqlite==3.37.0=h72a2b83_0
   - tk==8.6.11=he1e0b03_1
   - charset-normalizer==2.0.9=pyhd8ed1ab_0
   - colorama==0.4.4=pyh9f0ad1d_0
   - idna==3.1=pyhd3deb0d_0
   - pycparser==2.21=pyhd8ed1ab_0
   - python_abi==3.9=2_cp39
   - six==1.16.0=pyh6c4a22f_0
   - wheel==0.37.0=pyhd8ed1ab_1
   - certifi==2021.10.8=py39h2804cbe_1
   - cffi==1.15.0=py39h52b1de0_0
   - pycosat==0.6.3=py39h5161555_1009
   - pysocks==1.7.1=py39h2804cbe_4
   - ruamel_yaml==0.15.80=py39h5161555_1006
   - setuptools==59.4.0=py39h2804cbe_0
   - tqdm==4.62.3=pyhd8ed1ab_0
   - brotlipy==0.7.0=py39h5161555_1003
   - conda-package-handling==1.7.3=py39h5161555_1
   - cryptography==36.0.0=py39hfb8cd70_0
   - pip==21.3.1=pyhd8ed1ab_0
   - pyopenssl==21.0.0=pyhd8ed1ab_0
   - urllib3==1.26.7=pyhd8ed1ab_0
   - requests==2.26.0=pyhd8ed1ab_1
   - conda==4.11.0=py39h2804cbe_0


  Package                     Version  Build               Channel                                                                         Size
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  Install:
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

  + brotlipy                    0.7.0  py39h5161555_1003   conda-forge/osx-arm64/brotlipy-0.7.0-py39h5161555_1003.tar.bz2                Cached
  + ca-certificates         2021.10.8  h4653dfc_0          conda-forge/osx-arm64/ca-certificates-2021.10.8-h4653dfc_0.tar.bz2            Cached
  + certifi                 2021.10.8  py39h2804cbe_1      conda-forge/osx-arm64/certifi-2021.10.8-py39h2804cbe_1.tar.bz2                Cached
  + cffi                       1.15.0  py39h52b1de0_0      conda-forge/osx-arm64/cffi-1.15.0-py39h52b1de0_0.tar.bz2                      Cached
  + charset-normalizer          2.0.9  pyhd8ed1ab_0        conda-forge/noarch/charset-normalizer-2.0.9-pyhd8ed1ab_0.tar.bz2              Cached
  + colorama                    0.4.4  pyh9f0ad1d_0        conda-forge/noarch/colorama-0.4.4-pyh9f0ad1d_0.tar.bz2                        Cached
  + conda                      4.11.0  py39h2804cbe_0      conda-forge/osx-arm64/conda-4.11.0-py39h2804cbe_0.tar.bz2                     Cached
  + conda-package-handling      1.7.3  py39h5161555_1      conda-forge/osx-arm64/conda-package-handling-1.7.3-py39h5161555_1.tar.bz2     Cached
  + cryptography               36.0.0  py39hfb8cd70_0      conda-forge/osx-arm64/cryptography-36.0.0-py39hfb8cd70_0.tar.bz2              Cached
  + idna                          3.1  pyhd3deb0d_0        conda-forge/noarch/idna-3.1-pyhd3deb0d_0.tar.bz2                              Cached
  + libffi                      3.4.2  h3422bc3_5          conda-forge/osx-arm64/libffi-3.4.2-h3422bc3_5.tar.bz2                         Cached
  + libzlib                    1.2.11  hee7b306_1013       conda-forge/osx-arm64/libzlib-1.2.11-hee7b306_1013.tar.bz2                    Cached
  + ncurses                       6.2  h9aa5885_4          conda-forge/osx-arm64/ncurses-6.2-h9aa5885_4.tar.bz2                          Cached
  + openssl                    1.1.1l  h3422bc3_0          conda-forge/osx-arm64/openssl-1.1.1l-h3422bc3_0.tar.bz2                       Cached
  + pip                        21.3.1  pyhd8ed1ab_0        conda-forge/noarch/pip-21.3.1-pyhd8ed1ab_0.tar.bz2                            Cached
  + pycosat                     0.6.3  py39h5161555_1009   conda-forge/osx-arm64/pycosat-0.6.3-py39h5161555_1009.tar.bz2                 Cached
  + pycparser                    2.21  pyhd8ed1ab_0        conda-forge/noarch/pycparser-2.21-pyhd8ed1ab_0.tar.bz2                        Cached
  + pyopenssl                  21.0.0  pyhd8ed1ab_0        conda-forge/noarch/pyopenssl-21.0.0-pyhd8ed1ab_0.tar.bz2                      Cached
  + pysocks                     1.7.1  py39h2804cbe_4      conda-forge/osx-arm64/pysocks-1.7.1-py39h2804cbe_4.tar.bz2                    Cached
  + python                      3.9.7  h54d631c_3_cpython  conda-forge/osx-arm64/python-3.9.7-h54d631c_3_cpython.tar.bz2                 Cached
  + python_abi                    3.9  2_cp39              conda-forge/osx-arm64/python_abi-3.9-2_cp39.tar.bz2                           Cached
  + readline                      8.1  hedafd6a_0          conda-forge/osx-arm64/readline-8.1-hedafd6a_0.tar.bz2                         Cached
  + requests                   2.26.0  pyhd8ed1ab_1        conda-forge/noarch/requests-2.26.0-pyhd8ed1ab_1.tar.bz2                       Cached
  + ruamel_yaml               0.15.80  py39h5161555_1006   conda-forge/osx-arm64/ruamel_yaml-0.15.80-py39h5161555_1006.tar.bz2           Cached
  + setuptools                 59.4.0  py39h2804cbe_0      conda-forge/osx-arm64/setuptools-59.4.0-py39h2804cbe_0.tar.bz2                Cached
  + six                        1.16.0  pyh6c4a22f_0        conda-forge/noarch/six-1.16.0-pyh6c4a22f_0.tar.bz2                            Cached
  + sqlite                     3.37.0  h72a2b83_0          conda-forge/osx-arm64/sqlite-3.37.0-h72a2b83_0.tar.bz2                        Cached
  + tk                         8.6.11  he1e0b03_1          conda-forge/osx-arm64/tk-8.6.11-he1e0b03_1.tar.bz2                            Cached
  + tqdm                       4.62.3  pyhd8ed1ab_0        conda-forge/noarch/tqdm-4.62.3-pyhd8ed1ab_0.tar.bz2                           Cached
  + tzdata                      2021e  he74cb21_0          conda-forge/noarch/tzdata-2021e-he74cb21_0.tar.bz2                            Cached
  + urllib3                    1.26.7  pyhd8ed1ab_0        conda-forge/noarch/urllib3-1.26.7-pyhd8ed1ab_0.tar.bz2                        Cached
  + wheel                      0.37.0  pyhd8ed1ab_1        conda-forge/noarch/wheel-0.37.0-pyhd8ed1ab_1.tar.bz2                          Cached
  + xz                          5.2.5  h642e427_1          conda-forge/osx-arm64/xz-5.2.5-h642e427_1.tar.bz2                             Cached
  + yaml                        0.2.5  h642e427_0          conda-forge/osx-arm64/yaml-0.2.5-h642e427_0.tar.bz2                           Cached
  + zlib                       1.2.11  hee7b306_1013       conda-forge/osx-arm64/zlib-1.2.11-hee7b306_1013.tar.bz2                       Cached

  Summary:

  Install: 35 packages

  Total download: 0  B

─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────



Transaction starting
Linking ca-certificates-2021.10.8-h4653dfc_0
Linking libffi-3.4.2-h3422bc3_5
Linking libzlib-1.2.11-hee7b306_1013
Linking ncurses-6.2-h9aa5885_4
Linking tzdata-2021e-he74cb21_0
Linking xz-5.2.5-h642e427_1
Linking yaml-0.2.5-h642e427_0
Linking openssl-1.1.1l-h3422bc3_0
Linking zlib-1.2.11-hee7b306_1013
Linking readline-8.1-hedafd6a_0
Linking tk-8.6.11-he1e0b03_1
Linking sqlite-3.37.0-h72a2b83_0
Linking python-3.9.7-h54d631c_3_cpython
Linking wheel-0.37.0-pyhd8ed1ab_1
Linking python_abi-3.9-2_cp39
Linking setuptools-59.4.0-py39h2804cbe_0
Linking pip-21.3.1-pyhd8ed1ab_0
Linking ruamel_yaml-0.15.80-py39h5161555_1006
Linking pysocks-1.7.1-py39h2804cbe_4
Linking pycosat-0.6.3-py39h5161555_1009
Linking certifi-2021.10.8-py39h2804cbe_1
Linking six-1.16.0-pyh6c4a22f_0
Linking pycparser-2.21-pyhd8ed1ab_0
Linking idna-3.1-pyhd3deb0d_0
Linking colorama-0.4.4-pyh9f0ad1d_0
Linking charset-normalizer-2.0.9-pyhd8ed1ab_0
Linking cffi-1.15.0-py39h52b1de0_0
Linking tqdm-4.62.3-pyhd8ed1ab_0
Linking cryptography-36.0.0-py39hfb8cd70_0
Linking brotlipy-0.7.0-py39h5161555_1003
Linking conda-package-handling-1.7.3-py39h5161555_1
Linking pyopenssl-21.0.0-pyhd8ed1ab_0
Linking urllib3-1.26.7-pyhd8ed1ab_0
Linking requests-2.26.0-pyhd8ed1ab_1
Linking conda-4.11.0-py39h2804cbe_0
Transaction finished
installation finished.
Do you wish the installer to initialize Miniforge3
by running conda init? [yes|no]
[no] >>> yes
no change     /Users/gongx030/miniforge3/condabin/conda
no change     /Users/gongx030/miniforge3/bin/conda
no change     /Users/gongx030/miniforge3/bin/conda-env
no change     /Users/gongx030/miniforge3/bin/activate
no change     /Users/gongx030/miniforge3/bin/deactivate
no change     /Users/gongx030/miniforge3/etc/profile.d/conda.sh
no change     /Users/gongx030/miniforge3/etc/fish/conf.d/conda.fish
no change     /Users/gongx030/miniforge3/shell/condabin/Conda.psm1
no change     /Users/gongx030/miniforge3/shell/condabin/conda-hook.ps1
no change     /Users/gongx030/miniforge3/lib/python3.9/site-packages/xontrib/conda.xsh
no change     /Users/gongx030/miniforge3/etc/profile.d/conda.csh
no change     /Users/gongx030/.bash_profile
No action taken.
If you'd prefer that conda's base environment not be activated on startup,
   set the auto_activate_base parameter to false:

conda config --set auto_activate_base false

Thank you for installing Miniforge3!

However, with the default python 3.9, I still had the aforementioned numpy issue. Using a python version of 3.8 and a numpy version of 1.20.0 solved the issue. Now I am able to run the mnist example and see the GPU usage in the Activity Monitor.

Python 3.8.12 | packaged by conda-forge | (default, Jan 30 2022, 23:13:24)
[Clang 11.1.0 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> tf.config.list_physical_devices('GPU')
[PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]

@rishi-kulkarni
Copy link

I'm having the same issue on my Ubuntu CI runners:

+ wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh -nv -O miniforge.sh
+ bash miniforge.sh -b -p ...
PREFIX=...
Unpacking payload ...
Extracting "python-3.9.10-h85951f9_2_cpython.conda"
Extracting "_libgcc_mutex-0.1-conda_forge.conda"
Extracting "ca-certificates-2021.10.8-ha878542_0.conda"
Extracting "ld_impl_linux-64-2.36.1-hea4e1c9_2.conda"
Extracting "tzdata-2021e-he74cb21_0.conda"
Extracting "libgomp-11.2.0-h1d223b6_12.conda"
Extracting "_openmp_mutex-4.5-1_gnu.conda"
Extracting "libgcc-ng-11.2.0-h1d223b6_12.conda"
Extracting "bzip2-1.0.8-h7f98852_4.conda"
Extracting "libffi-3.4.2-h7f98852_5.conda"
Extracting "libnsl-2.0.0-h7f98852_0.conda"
Extracting "libuuid-2.32.1-h7f98852_1000.conda"
Extracting "libzlib-1.2.11-h36c2ea0_1013.conda"
Extracting "ncurses-6.3-h9c3ff4c_0.conda"
Extracting "openssl-1.1.1l-h7f98852_0.conda"
Extracting "xz-5.2.5-h516909a_1.conda"
Extracting "yaml-0.2.5-h7f98852_2.conda"
Extracting "readline-8.1-h46c0cb4_0.conda"
Extracting "zlib-1.2.11-h36c2ea0_1013.conda"
Extracting "sqlite-3.37.0-h9cd32fc_0.conda"
Extracting "tk-8.6.11-h27826a3_1.conda"
Extracting "charset-normalizer-2.0.11-pyhd8ed1ab_0.conda"
Extracting "colorama-0.4.4-pyh9f0ad1d_0.conda"
Extracting "idna-3.3-pyhd8ed1ab_0.conda"
Extracting "pycparser-2.21-pyhd8ed1ab_0.conda"
Extracting "python_abi-3.9-2_cp39.conda"
Extracting "six-1.16.0-pyh6c4a22f_0.conda"
Extracting "wheel-0.37.1-pyhd8ed1ab_0.conda"
Extracting "certifi-2021.10.8-py39hf3d152e_1.conda"
Extracting "cffi-1.15.0-py39h4bc2ebd_0.conda"
Extracting "pycosat-0.6.3-py39h3811e60_1009.conda"
Extracting "pysocks-1.7.1-py39hf3d152e_4.conda"
Extracting "ruamel_yaml-0.15.80-py39h3811e60_1006.conda"
Extracting "setuptools-60.8.1-py39hf3d152e_0.conda"
Extracting "tqdm-4.62.3-pyhd8ed1ab_0.conda"
Extracting "brotlipy-0.7.0-py39h3811e60_1003.conda"
Extracting "conda-package-handling-1.7.3-py39h3811e60_1.conda"
Extracting "cryptography-36.0.1-py39h95dcef6_0.conda"
Extracting "pip-22.0.3-pyhd8ed1ab_0.conda"
Extracting "pyopenssl-22.0.0-pyhd8ed1ab_0.conda"
Extracting "urllib3-1.26.8-pyhd8ed1ab_1.conda"
Extracting "requests-2.27.1-pyhd8ed1ab_0.conda"
Extracting "conda-4.11.0-py39hf3d152e_0.conda"

                                           __
          __  ______ ___  ____ _____ ___  / /_  ____ _
         / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
        / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
       / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
      /_/

Encountered problems while solving:
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by sqlite-3.37.0-h9cd32fc_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-h46c0cb4_0

The environment can't be solved, aborting the operation
error    Could not solve for environment specs
critical UnsatisfiableError

Reverting to the last version that worked (https://github.com/conda-forge/miniforge/releases/download/4.11.0-0/Mambaforge-4.11.0-0-Linux-x86_64.sh) fixed the issue.

@makaspacex
Copy link

M1 Pro macOS 12.3 is also having the same issue

$ bash ./Miniforge3-MacOSX-arm64.sh

Welcome to Miniforge3 4.11.0-4

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> 
Miniforge installer code uses BSD-3-Clause license as stated below.

Binary packages that come with it have their own licensing terms
and by installing miniforge you agree to the licensing terms of individual
packages as well. They include different OSI-approved licenses including
the GNU General Public License and can be found in pkgs/<pkg-name>/info/licenses
folders.

Miniforge installer comes with a boostrapping executable that is used
when installing miniforge and is deleted after miniforge is installed.
The bootstrapping executable uses micromamba, cli11, cpp-filesystem,
curl, c-ares, krb5, libarchive, libev, lz4, nghttp2, openssl, libsolv,
nlohmann-json, reproc and zstd which are licensed under BSD-3-Clause,
MIT and OpenSSL licenses. Licenses and copyright notices of these
projects can be found at the following URL.
https://github.com/conda-forge/micromamba-feedstock/tree/master/recipe.

=============================================================================

Copyright (c) 2019-2021, conda-forge
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

Do you accept the license terms? [yes|no]
[no] >>> yes

Miniforge3 will now be installed into this location:
/Users/Simon/miniforge3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

[/Users/Simon/miniforge3] >>> 
PREFIX=/Users/Simon/miniforge3
Unpacking payload ...
Extracting "python_abi-3.9-2_cp39.tar.bz2"
Extracting "idna-3.3-pyhd8ed1ab_0.tar.bz2"
Extracting "six-1.16.0-pyh6c4a22f_0.tar.bz2"
Extracting "xz-5.2.5-h642e427_1.tar.bz2"
Extracting "wheel-0.37.1-pyhd8ed1ab_0.tar.bz2"
Extracting "pip-22.0.3-pyhd8ed1ab_0.tar.bz2"
Extracting "pycparser-2.21-pyhd8ed1ab_0.tar.bz2"
Extracting "pycosat-0.6.3-py39h5161555_1009.tar.bz2"
Extracting "ncurses-6.3-hc470f4d_0.tar.bz2"
Extracting "libzlib-1.2.11-hee7b306_1013.tar.bz2"
Extracting "ca-certificates-2021.10.8-h4653dfc_0.tar.bz2"
Extracting "zlib-1.2.11-hee7b306_1013.tar.bz2"
Extracting "colorama-0.4.4-pyh9f0ad1d_0.tar.bz2"
Extracting "sqlite-3.37.0-h72a2b83_0.tar.bz2"
Extracting "urllib3-1.26.8-pyhd8ed1ab_1.tar.bz2"
Extracting "tzdata-2021e-he74cb21_0.tar.bz2"
Extracting "requests-2.27.1-pyhd8ed1ab_0.tar.bz2"
Extracting "tqdm-4.62.3-pyhd8ed1ab_0.tar.bz2"
Extracting "pyopenssl-22.0.0-pyhd8ed1ab_0.tar.bz2"
Extracting "ruamel_yaml-0.15.80-py39h5161555_1006.tar.bz2"
Extracting "conda-4.11.0-py39h2804cbe_0.tar.bz2"
Extracting "pysocks-1.7.1-py39h2804cbe_4.tar.bz2"
Extracting "certifi-2021.10.8-py39h2804cbe_1.tar.bz2"
Extracting "conda-package-handling-1.7.3-py39h5161555_1.tar.bz2"
Extracting "readline-8.1-hedafd6a_0.tar.bz2"
Extracting "bzip2-1.0.8-h3422bc3_4.tar.bz2"
Extracting "libffi-3.4.2-h3422bc3_5.tar.bz2"
Extracting "cffi-1.15.0-py39h52b1de0_0.tar.bz2"
Extracting "python-3.9.10-hd16f9c5_2_cpython.tar.bz2"
Extracting "brotlipy-0.7.0-py39h5161555_1003.tar.bz2"
Extracting "yaml-0.2.5-h3422bc3_2.tar.bz2"
Extracting "setuptools-60.9.3-py39h2804cbe_0.tar.bz2"
Extracting "openssl-1.1.1l-h3422bc3_0.tar.bz2"
Extracting "tk-8.6.12-he1e0b03_0.tar.bz2"
Extracting "charset-normalizer-2.0.12-pyhd8ed1ab_0.tar.bz2"
Extracting "cryptography-36.0.1-py39hfb8cd70_0.tar.bz2"

                                           __
          __  ______ ___  ____ _____ ___  / /_  ____ _
         / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
        / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
       / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
      /_/

Encountered problems while solving:
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by sqlite-3.37.0-h72a2b83_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0
  - nothing provides ncurses >=6.2,<6.3.0a0 needed by readline-8.1-hedafd6a_0

The environment can't be solved, aborting the operation
error    Could not solve for environment specs
critical UnsatisfiableError

and ncurses == 6.3.0 has been installed.

$ brew info ncurses 
ncurses: stable 6.3 (bottled) [keg-only]
Text-based UI library
https://invisible-island.net/ncurses/announce.html
/opt/homebrew/Cellar/ncurses/6.3 (3,968 files, 9.6MB)
  Poured from bottle on 2022-03-22 at 12:30:09
From: https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git/Formula/ncurses.rb
License: MIT
==> Dependencies
Build: pkg-config ✔
==> Caveats
ncurses is keg-only, which means it was not symlinked into /opt/homebrew,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have ncurses first in your PATH, run:
  echo 'export PATH="/opt/homebrew/opt/ncurses/bin:$PATH"' >> ~/.zshrc

For compilers to find ncurses you may need to set:
  export LDFLAGS="-L/opt/homebrew/opt/ncurses/lib"
  export CPPFLAGS="-I/opt/homebrew/opt/ncurses/include"

For pkg-config to find ncurses you may need to set:
  export PKG_CONFIG_PATH="/opt/homebrew/opt/ncurses/lib/pkgconfig"

==> Analytics
install: 119,887 (30 days), 393,301 (90 days), 1,316,463 (365 days)
install-on-request: 2,129 (30 days), 6,205 (90 days), 24,755 (365 days)
build-error: 9 (30 days)

@catslu
Copy link

catslu commented Mar 30, 2022

For all dears;

I tried and I want to say:

You can try to delet all files & folders which name includes conda, and don't forget to delet .conda & .condarc, the hidden files & folders.

@heino
Copy link

heino commented May 18, 2022

Something happened between v4.11.0-0 and v4.11.0-1 (as rishi-kulkarni suggested).

Reverting to the last version that worked (https://github.com/conda-forge/miniforge/releases/download/4.11.0-0/Mambaforge-4.11.0-0-Linux-x86_64.sh) fixed the issue.

We get the same error with Redhat RHEL v8.5 on x86_64 ("nothing provides ncurses >=6.2,<6.3.0a0 needed by") when installing versions v4.11.0-1, v4.11.0-4 and v4.12.0-0.

Our setup has a global /etc/conda/.condarc (which among other things sets 'default_alias' globally), and everything worked fine with v4.11.0-0. The issue seemed to be affected by a mixture of 'default_alias', 'channels' and 'default-channels', but reverting back to v4.11.0-0 simply made the installation run as usual.

@tpanza
Copy link

tpanza commented Aug 6, 2022

This is also happening on Oracle Linux Server 7.9 x86_64

@hmaarrfk
Copy link
Contributor

These issues are highly dependent on system configuration. A new issue is likely the best way to help you. Please open a new one to help us focus on your needs. Finally, if you could, once you've opened your new issue, delete your comments here to help keep the discussion focused that would be helpful.

@tpanza
Copy link

tpanza commented Aug 30, 2022

These issues are highly dependent on system configuration. A new issue is likely the best way to help you. Please open a new one to help us focus on your needs. Finally, if you could, once you've opened your new issue, delete your comments here to help keep the discussion focused that would be helpful.

@hmaarrfk Opened #340

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
condarc Previous condarc files hindering the installation question Further information is requested
Development

No branches or pull requests

10 participants