Suddenly I can’t use the conda command at all; when I use the conda command in the Mac terminal, I get a long-winded error report. For example, typing
conda info
would display
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1124, in __call__
return func(*args, **kwargs)
File "/opt/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line 57, in main_subshell
p = generate_parser()
File "/opt/anaconda3/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 41, in generate_parser
description='conda is a tool for managing and deploying applications,'
File "/opt/anaconda3/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 117, in __init__
self._subcommands = context.plugin_manager.get_hook_results("subcommands")
File "/opt/anaconda3/lib/python3.7/site-packages/conda/base/context.py", line 422, in plugin_manager
from ..plugins.manager import get_plugin_manager
File "/opt/anaconda3/lib/python3.7/site-packages/conda/plugins/manager.py", line 9, in <module>
from . import solvers, virtual_packages
File "/opt/anaconda3/lib/python3.7/site-packages/conda/plugins/virtual_packages/__init__.py", line 5, in <module>
from . import archspec, cuda, linux, osx, windows
File "/opt/anaconda3/lib/python3.7/site-packages/conda/plugins/virtual_packages/cuda.py", line 3, in <module>
import ctypes
File "/opt/anaconda3/lib/python3.7/ctypes/__init__.py", line 7, in <module>
from _ctypes import Union, Structure, Array
ImportError: dlopen(/opt/anaconda3/lib/python3.7/lib-dynload/_ctypes.cpython-37m-darwin.so, 0x0002): Library not loaded: '@rpath/libffi.6.dylib'
Referenced from: '/opt/anaconda3/lib/python3.7/lib-dynload/_ctypes.cpython-37m-darwin.so'
Reason: tried: '/opt/anaconda3/lib/libffi.6.dylib' (no such file), '/opt/anaconda3/lib/libffi.6.dylib' (no such file), '/opt/anaconda3/lib/libffi.6.dylib' (no such file), '/opt/anaconda3/lib/python3.7/lib-dynload/../../libffi.6.dylib' (no such file), '/opt/anaconda3/lib/libffi.6.dylib' (no such file), '/opt/anaconda3/lib/libffi.6.dylib' (no such file), '/opt/anaconda3/lib/libffi.6.dylib' (no such file), '/opt/anaconda3/lib/python3.7/lib-dynload/../../libffi.6.dylib' (no such file), '/opt/anaconda3/lib/libffi.6.dylib' (no such file), '/opt/anaconda3/lib/libffi.6.dylib' (no such file), '/opt/anaconda3/bin/../lib/libffi.6.dylib' (no such file), '/opt/anaconda3/lib/libffi.6.dylib' (no such file), '/opt/anaconda3/lib/libffi.6.dylib' (no such file), '/opt/anaconda3/bin/../lib/libffi.6.dylib' (no such file), '/usr/local/lib/libffi.6.dylib' (no such file), '/usr/lib/libffi.6.dylib' (no such file)
`$ /opt/anaconda3/bin/conda info`
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]:
I uninstalled Anaconda once and reinstalled it, but it did not fix the problem. Does anyone know how to solve this problem?