M1 mac create environment error

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
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

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.).

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.
  • Uninstall miniforge rm -rf ~/miniforge3
  • Then, reinstall Miniforge with the correct architecture and create the environment

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