我试着用自制软件安装aws-sam-cli,但是我经常遇到错误。
命令:brew install --build-from-source aws-sam-cli (来自这里的建议)
全日志输出:
下载已下载的/Users/xxxx/Library/Caches/Homebrew/downloads/83481a8e9be3330f9960015919f25317b568fa8de7b6356eb075525e3e195f23--aws-aws-sam-cli-v1.53.0-0-gd2ded65.tar.gz https://api.github.com/repos/aws/aws-sam-cli/tarball/v1.53.0:从aws/tap ==> python3.8 -m venv安装aws的https://api.github.com/repos/aws/aws-sam-cli/tarball/v1.53.0 ==> -系统-网站-软件包/Users/xxxx/homebrew/Cellar/aws-sam-cli/1.53.0/libexec ==> /Users/xxxx/homebrew/Cellar/aws-sam-cli/1.53.0/libexec/bin/pip安装-升级pip /Users/xxxx/homebrew/Cellar/aws-sam-cli/1.53.0/libexec/bin/pip /private/tmp/aws-sam-cli-20220810-6534-nwvmma/aws-aws-sam-cli-d2ded65 -v --忽略--从/Users/xxxx/Library/Logs/Homebrew/aws-sam-cli/03.pip:│退出代码中安装的最后15行代码:1╰─>,参见上面的输出。注意:此错误源于子进程,很可能与pip无关。完整命令: /Users/xxxx/homebrew/Cellar/aws-sam-cli/1.53.0/libexec/bin/python3.8 /private/tmp/pip-standalone-pip-npto4dyu/env_pip.zip/pip install -忽略-安装-非用户-前缀/私有/tmp/pip-build 3 hf8bh7a/覆盖-不警告-脚本-位置-非二进制:--仅--二进制:无:-i https://pypi.org/simple - setuptools。继承安装构建依赖关系:完成状态“错误”错误:子进程-退出-与-错误×pip子进程安装构建依赖没有成功运行。输出代码:1╰─> (见上面的输出)。注意:此错误源于子进程,很可能与pip无关。无法获取URL https://pypi.org/simple/pip/:确认ssl证书存在问题:HTTPSConnectionPool(host=‘pypi.org,port=443):最大重试超过url: /simple/pip/ (由SSLError(SSLCertVerificationError(1,'SSL: CERTIFICATE_VERIFY_FAILED证书验证失败:无法获得本地颁发者证书(_ssl.c:1131))引起)
我无法访问sudo,因此无法运行管理命令。不过,我可以用pip install aws-sam-cli安装萨姆。
我还尝试了一些来自这里的建议,将~/.config设置为
[global]
trusted-host = pypi.python.org files.pythonhosted.org pypi.org pypi.io编辑: Brew配置:
brew config
HOMEBREW_VERSION: 3.5.8
ORIGIN: https://github.com/Homebrew/brew
HEAD: ff9c2500195cc357d4a06f99d462f8d8a5d37892
Last commit: 5 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: cbee80e4907b6d2f643cc7108d4197211ea28917
Core tap last commit: 72 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /Users/xxxx/homebrew
HOMEBREW_REPOSITORY: /Users/xxxx/homebrew
HOMEBREW_CELLAR: /Users/xxxx/homebrew/Cellar
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 13.1.6 build 1316
Git: 2.32.1 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.79.1 => /usr/bin/curl
macOS: 12.5-arm64
CLT: 13.4.0.0.1.1651278267
Xcode: N/A
Rosetta 2: falsebrew doctor
Warning: Your Homebrew's prefix is not /opt/homebrew.
Some of Homebrew's bottles (binary packages) can only be used with the default
prefix (/opt/homebrew).
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving any issues you experience while you are running this
unsupported configuration.
Warning: /private/tmp is world-writable but does not have the sticky bit set.
To set it, run the following command:
sudo chmod +t /private/tmp我的路径已被重新配置为:/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
就像我之前说的,我没有管理权限,所以我不能在/opt中安装,也不能运行sudo chmod +t /private/tmp
发布于 2022-09-08 08:59:41
我在安装aws时也遇到了问题,这最终帮助了我:
python3 -m pip install aws-sam-cli发布于 2022-09-17 00:35:34
https://stackoverflow.com/questions/73303575
复制相似问题