# M1 mac create environment error

**URL:** <https://forum.anaconda.com/t/m1-mac-create-environment-error/80958>\
**Category:** Getting Started\
**Created:** [August 22, 2024, 1:54pm UTC](https://forum.anaconda.com/t/m1-mac-create-environment-error/80958 "2024-08-22T13:54:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevin712](https://avatars.discourse-cdn.com/v4/letter/k/f5a800/32.png) [@kevin712](https://forum.anaconda.com/u/kevin712)\
**Post date:** [August 22, 2024, 1:54pm UTC](https://forum.anaconda.com/t/m1-mac-create-environment-error/80958/1 "2024-08-22T13:54:25Z")

</div>

hi,  
I’ve been using anaconda virtual environment properly for a long time, and  
recently I got error to create new environment after I reinstall anaconda.  
The error message is like as follows. Can you help me? Thanks.

wonhy@MacBook-Pro-3 ~ % conda create -n mujoco python=3.8  
Error while loading conda entry point: conda-libmamba-solver (dlopen(/Users/wonhy/miniforge3/lib/python3.10/site-packages/libmambapy/bindings.cpython-310-darwin.so, 0x0002): Library not loaded: @rpath/libcrypto.3.dylib  
Referenced from: \<87BD792F-0587-3166-8AAF-20CF792B82F9\> /Users/wonhy/miniforge3/lib/libmamba.2.0.0.dylib  
Reason: tried: ‘/Users/wonhy/miniforge3/lib/libcrypto.3.dylib’ (mach-o file, but is an incompatible architecture (have ‘x86\_64’, need ‘arm64e’ or ‘arm64’)), ‘/Users/wonhy/miniforge3/lib/python3.10/site-packages/libmambapy/../../../libcrypto.3.dylib’ (mach-o file, but is an incompatible architecture (have ‘x86\_64’, need ‘arm64e’ or ‘arm64’)), ‘/Users/wonhy/miniforge3/lib/python3.10/site-packages/libmambapy/../../../libcrypto.3.dylib’ (mach-o file, but is an incompatible architecture (have ‘x86\_64’, need ‘arm64e’ or ‘arm64’)), ‘/Users/wonhy/miniforge3/bin/../lib/libcrypto.3.dylib’ (mach-o file, but is an incompatible architecture (have ‘x86\_64’, need ‘arm64e’ or ‘arm64’)), ‘/Users/wonhy/miniforge3/bin/../lib/libcrypto.3.dylib’ (mach-o file, but is an incompatible architecture (have ‘x86\_64’, need ‘arm64e’ or ‘arm64’)), ‘/usr/local/lib/libcrypto.3.dylib’ (no such file), ‘/usr/lib/libcrypto.3.dylib’ (no such file, not in dyld cache))

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

```
Traceback (most recent call last):
  File "/Users/wonhy/miniforge3/lib/python3.10/site-packages/conda/exception_handler.py", line 18, in __call__
    return func(*args, **kwargs)
  File "/Users/wonhy/miniforge3/lib/python3.10/site-packages/conda/cli/main.py", line 84, in main_subshell
    exit_code = do_call(args, parser)
  File "/Users/wonhy/miniforge3/lib/python3.10/site-packages/conda/cli/conda_argparse.py", line 200, in do_call
    result = getattr(module, func_name)(args, parser)
  File "/Users/wonhy/miniforge3/lib/python3.10/site-packages/conda/notices/core.py", line 132, in wrapper
    return func(*args, **kwargs)
  File "/Users/wonhy/miniforge3/lib/python3.10/site-packages/conda/cli/main_create.py", line 148, in execute
    return install(args, parser, "create")
  File "/Users/wonhy/miniforge3/lib/python3.10/site-packages/conda/cli/install.py", line 188, in install
    elif not paths_equal(context.active_prefix, context.root_prefix):
  File "/Users/wonhy/miniforge3/lib/python3.10/site-packages/conda/common/path.py", line 69, in paths_equal
    return abspath(path1) == abspath(path2)
  File "/Users/wonhy/miniforge3/lib/python3.10/posixpath.py", line 379, in abspath
    path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not NoneType

```

`$ /Users/wonhy/miniforge3/bin/conda create -n mujoco python=3.8`

environment variables:  
CIO\_TEST=  
CONDA\_EXE=/Users/wonhy/miniforge3/bin/conda  
CONDA\_PYTHON\_EXE=/Users/wonhy/miniforge3/bin/python  
CONDA\_ROOT=/Users/wonhy/miniforge3  
CONDA\_SHLVL=0  
CURL\_CA\_BUNDLE=  
INFOPATH=/opt/homebrew/share/info:  
LD\_PRELOAD=  
PATH=/opt/homebrew/bin/autoconf:/opt/homebrew/opt/llvm/bin:/Library/Develop  
er/CommandLineTools/usr/bin:/opt/homebrew/bin:/Library/Developer/Comma  
ndLineTools/usr/bin/python3:/Users/wonhy/miniforge3/condabin:/Library/  
Frameworks/Python.framework/Versions/3.12/bin:/opt/homebrew/bin:/opt/h  
omebrew/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/us  
r/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbi  
n:/opt/homebrew/lib/python3.11/site-packages:/var/run/com.apple.securi  
ty.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.se  
curity.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.secu  
rity.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Ap  
ple/usr/bin:/Applications/VMware Fusion Tech Preview.app/Contents/Publ  
ic:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current  
/Commands:/Applications/iTerm.app/Contents/Resources/utilities  
PYTHON\_PATH=/Library/Developer/CommandLineTools/usr/bin/python3  
REQUESTS\_CA\_BUNDLE=  
SSL\_CERT\_FILE=

```
 active environment : None
        shell level : 0
   user config file : /Users/wonhy/.condarc

```

populated config files : /Users/wonhy/miniforge3/.condarc  
/Users/wonhy/.condarc  
conda version : 24.7.1  
conda-build version : not installed  
python version : 3.10.14.final.0  
solver : libmamba (default)  
virtual packages : \_\_archspec=1=x86\_64  
\_\_conda=24.7.1=0  
\_\_osx=14.6.1=0  
\_\_unix=0=0  
base environment : /Users/wonhy/miniforge3 (writable)  
conda av data dir : /Users/wonhy/miniforge3/etc/conda  
conda av metadata url : None  
channel URLs : [conda-forge/osx-64](https://conda.anaconda.org/conda-forge/osx-64)  
[conda-forge/noarch](https://conda.anaconda.org/conda-forge/noarch)  
package cache : /Users/wonhy/miniforge3/pkgs  
/Users/wonhy/.conda/pkgs  
envs directories : /Users/wonhy/miniforge3/envs  
/Users/wonhy/.conda/envs  
platform : osx-64  
user-agent : conda/24.7.1 requests/2.31.0 CPython/3.10.14 Darwin/23.6.0 OSX/14.6.1 solver/libmamba  
UID:GID : 501:20  
netrc file : None  
offline mode : False

An unexpected error has occurred. Conda has prepared the above report.  
If you suspect this error is being caused by a malfunctioning plugin,  
consider using the --no-plugins option to turn off plugins.

Example: conda --no-plugins install

Alternatively, you can set the CONDA\_NO\_PLUGINS environment variable on  
the command line to run the command without plugins enabled.

Example: CONDA\_NO\_PLUGINS=true conda install

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]: y  
Upload did not complete.

Thank you for helping to improve conda.  
Opt-in to always sending reports (and not see this message again)  
by running

```
$ conda config --set report_errors true

```

---

<div class="post-metadata">

**Author:** ![Saundra\_Monroe](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/saundra_monroe/32/25_2.png) [@Saundra\_Monroe](https://forum.anaconda.com/u/Saundra_Monroe)\
**Post date:** [August 22, 2024, 2:24pm UTC](https://forum.anaconda.com/t/m1-mac-create-environment-error/80958/2 "2024-08-22T14:24:31Z")

</div>

The error you’re encountering is related to a compatibility issue between the architecture of the libraries on your system and your processor architecture. Specifically, the `libcrypto.3.dylib` library, which is required by the `libmamba` library, is built for the `x86_64` architecture, while your MacBook Pro is running on an ARM-based chip (`arm64e` or `arm64`), which is typical for Apple Silicon Macs (M1, M2, etc.).

---

<div class="post-metadata">

**Author:** ![Saundra\_Monroe](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/saundra_monroe/32/25_2.png) [@Saundra\_Monroe](https://forum.anaconda.com/u/Saundra_Monroe)\
**Post date:** [August 22, 2024, 2:29pm UTC](https://forum.anaconda.com/t/m1-mac-create-environment-error/80958/3 "2024-08-22T14:29:59Z")

</div>

Steps to take:

**Ensure you’re using the correct Miniforge installer:**

- If you’re using an Apple Silicon (M1, M2) Mac, make sure you have installed the correct version of Miniforge for ARM architecture (`arm64`).
- You can download the appropriate version [here](https://github.com/conda-forge/miniforge).
- Uninstall miniforge `rm -rf ~/miniforge3`
- Then, reinstall Miniforge with the correct architecture and create the environment

---

<div class="post-metadata">

**Author:** ![kevin712](https://avatars.discourse-cdn.com/v4/letter/k/f5a800/32.png) [@kevin712](https://forum.anaconda.com/u/kevin712)\
**Post date:** [August 23, 2024, 8:19am UTC](https://forum.anaconda.com/t/m1-mac-create-environment-error/80958/4 "2024-08-23T08:19:13Z")

</div>

Thank you for the help. I reinstalled the miniforge and actually, I forgot to source the miniforge/bin/activate file. Thanks a lot!
