You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

M1 Mac设备Anaconda无法启动问题求助

问题:M1 Mac上Anaconda无法启动且升级时出现OpenSSL相关报错

本人在M1 Mac笔记本上此前一直保持Anaconda和Spyder IDE开启状态,近日关闭后重新打开时,Anaconda无法启动——点击图标仅弹跳两秒后就消失。尝试升级anaconda-navigator时出现如下报错:

Traceback (most recent call last):
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/exceptions.py", line 1118, in __call__
    return func(*args, **kwargs)
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/cli/main.py", line 57, in main_subshell
    p = generate_parser()
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/cli/conda_argparse.py", line 40, in generate_parser
    p = ArgumentParser(
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/cli/conda_argparse.py", line 117, in __init__
    self._subcommands = context.plugin_manager.get_hook_results("subcommands")
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/base/context.py", line 421, in plugin_manager
    from ..plugins.manager import get_plugin_manager
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/plugins/__init__.py", line 3, in <module>
    from .hookspec import hookimpl  # noqa: F401
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/plugins/hookspec.py", line 10, in <module>
    from .types import CondaSolver, CondaSubcommand, CondaVirtualPackage
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/plugins/types.py", line 6, in <module>
    from ..core.solve import Solver
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/core/solve.py", line 19, in <module>
    from .index import get_reduced_index, _supplement_index_with_system
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/core/index.py", line 15, in <module>
    from .package_cache_data import PackageCacheData
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/core/package_cache_data.py", line 26, in <module>
    from .path_actions import CacheUrlAction, ExtractPackageAction
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/core/path_actions.py", line 32, in <module>
    from ..gateways.connection.download import download
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/gateways/connection/download.py", line 12, in <module>
    from .session import CondaSession
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/gateways/connection/session.py", line 11, in <module>
    from .adapters.s3 import S3Adapter
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/gateways/connection/adapters/s3.py", line 10, in <module>
    import boto3
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/boto3/__init__.py", line 17, in <module>
    from boto3.session import Session
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/boto3/session.py", line 17, in <module>
    import botocore.session
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/botocore/session.py", line 26, in <module>
    import botocore.client
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/botocore/client.py", line 15, in <module>
    from botocore import waiter, xform_name
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/botocore/waiter.py", line 18, in <module>
    from botocore.docs.docstring import WaiterDocstring
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/botocore/docs/__init__.py", line 15, in <module>
    from botocore.docs.service import ServiceDocumenter
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/botocore/docs/service.py", line 14, in <module>
    from botocore.docs.client import ClientDocumenter, ClientExceptionsDocumenter
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/botocore/docs/client.py", line 14, in <module>
    from botocore.docs.example import ResponseExampleDocumenter
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/botocore/docs/example.py", line 13, in <module>
    from botocore.docs.shape import ShapeDocumenter
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/botocore/docs/shape.py", line 19, in <module>
    from botocore.utils import is_json_value_header
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/botocore/utils.py", line 37, in <module>
    import botocore.httpsession
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/botocore/httpsession.py", line 46, in <module>
    from urllib3.contrib.pyopenssl import (
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/urllib3/contrib/pyopenssl.py", line 50, in <module>
    import OpenSSL.SSL
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/OpenSSL/crypto.py", line 3279, in <module>
    _lib.OpenSSL_add_all_algorithms()
AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/larrychang/opt/anaconda3/bin/conda", line 13, in <module>
    sys.exit(main())
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/cli/main.py", line 112, in main
    return conda_exception_handler(main, *args, **kwargs)
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/exceptions.py", line 1418, in conda_exception_handler
    return_value = exception_handler(func, *args, **kwargs)
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/exceptions.py", line 1121, in __call__
    return self.handle_exception(exc_val, exc_tb)
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/exceptions.py", line 1161, in handle_exception
    return self.handle_unexpected_exception(exc_val, exc_tb)
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/exceptions.py", line 1172, in handle_unexpected_exception
    self.print_unexpected_error_report(error_report)
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/exceptions.py", line 1234, in print_unexpected_error_report
    from .cli.main_info import get_env_vars_str, get_main_info_str
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/cli/main_info.py", line 17, in <module>
    from ..core.index import _supplement_index_with_system
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/core/index.py", line 15, in <module>
    from .package_cache_data import PackageCacheData
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/core/package_cache_data.py", line 26, in <module>
    from .path_actions import CacheUrlAction, ExtractPackageAction
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/core/path_actions.py", line 32, in <module>
    from ..gateways.connection.download import download
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/gateways/connection/download.py", line 12, in <module>
    from .session import CondaSession
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/gateways/connection/session.py", line 11, in <module>
    from .adapters.s3 import S3Adapter
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/conda/gateways/connection/adapters/s3.py", line 10, in <module>
    import boto3
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/boto3/__init__.py", line 17, in <module>
    from boto3.session import Session
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/boto3/session.py", line 17, in <module>
    import botocore.session
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/botocore/session.py", line 26, in <module>
    import botocore.client
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/botocore/client.py", line 15, in <module>
    from botocore import waiter, xform_name
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/botocore/waiter.py", line 18, in <module>
    from botocore.docs.docstring import WaiterDocstring
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/botocore/docs/__init__.py", line 15, in <module>
    from botocore.docs.service import ServiceDocumenter
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/botocore/docs/service.py", line 14, in <module>
    from botocore.docs.client import ClientDocumenter, ClientExceptionsDocumenter
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/botocore/docs/client.py", line 14, in <module>
    from botocore.docs.example import ResponseExampleDocumenter
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/botocore/docs/example.py", line 13, in <module>
    from botocore.docs.shape import ShapeDocumenter
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/botocore/docs/shape.py", line 19, in <module>
    from botocore.utils import is_json_value_header
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/botocore/utils.py", line 37, in <module>
    import botocore.httpsession
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/botocore/httpsession.py", line 46, in <module>
    from urllib3.contrib.pyopenssl import (
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/urllib3/contrib/pyopenssl.py", line 50, in <module>
    import OpenSSL.SSL
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/Users/larrychang/opt/anaconda3/lib/python3.9/site-packages/OpenSSL/crypto.py", line 3279, in <module>
    _lib.OpenSSL_add_all_algorithms()
AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'

已尝试以下解决方案,但均无效:

  • 升级pip
  • 升级pyopenssl
  • 指定cryptography版本为38.0.4
  • 升级anaconda-navigator

内容的提问来源于stack exchange,提问作者JCLawrence

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.29 07:27:04