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

Mac下用Homebrew安装aws-sam-cli遇pip SSL证书验证错误求助

使用Homebrew安装aws-sam-cli时遭遇pip SSL证书验证错误
  • 尝试通过Homebrew安装aws-sam-cli,执行命令:brew install --build-from-source aws-sam-cli(该命令参考GitHub相关issue建议),但安装过程始终出现pip相关错误
  • 完整日志显示,pip在获取pypi.org资源时触发SSL证书验证失败,错误详情:

    HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)')))

  • 无sudo权限,无法执行系统级管理命令,但可直接通过pip install aws-sam-cli安装该工具
  • 已尝试的无效方案:参考Stack Overflow建议,在~/.config目录下配置pip的trusted-host为pypi.python.org files.pythonhosted.org pypi.org pypi.io,问题未得到解决

相关配置信息

  • brew config输出:Homebrew前缀为/Users/xxxx/homebrew(非默认的/opt/homebrew)
  • brew doctor提示:/private/tmp缺少粘滞位,但无法执行sudo chmod +t /private/tmp进行修复
  • 当前环境Path配置:/Users/xxxx/Library/Python/3.8/bin/:/Users/xxxx/homebrew/bin:/Users/Ufuoma.Apoki/.serverless/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.08.22 23:15:44