macos python证书问题
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /usr/local/Cellar/sphinx-doc/8.2.3_3/libexec/bin/python /usr/local/Cellar/python@3.13/3.13.5/lib/python3.13/site-packages/pip/__pip-runner__.py install --ignore-installed --no-user --prefix /private/tmp/pip-build-env-3etjnrij/overlay --no-warn-script-location --disable-pip-version-check --no-compile --target '' -v --no-binary :all: --only-binary :none: -i https://pypi.org/simple -- 'flit_core>=3.7'
cwd: [inherit]
Installing build dependencies: finished with status 'error'
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: 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:1028)'))) - skipping
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
在~/.config/pip/pip.conf
中写入如下内容
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host=pypi.tuna.tsinghua.edu.cn
在运行命令
/Applications/Python\ 3.13/Install\ Certificates.command
作者:SteveChen 创建时间:2025-07-04 10:44
最后编辑:SteveChen 更新时间:2025-07-04 10:49
最后编辑:SteveChen 更新时间:2025-07-04 10:49