1

我正在尝试使用以下命令在 mac 上设置 emsdk:

./emsdk install latest

我从 git 克隆了 repo。但是,在运行上述命令时出现以下错误:

** NOTICE **: The default SDK changed from `fastcomp` to `upstream`.
If you have problems, or wish to revert back to fastcomp for some other reason
you can add `-fastcomp` to explicitly install that fastcomp-based
SDK, .e.g ./emsdk install latest-fastcomp.

Installing SDK 'sdk-releases-upstream-b024b71038d1291ed7ec23ecd553bf2c0c8d6da6-64bit'..
Installing tool 'releases-upstream-b024b71038d1291ed7ec23ecd553bf2c0c8d6da6-64bit'..
Error: Downloading URL 'https://storage.googleapis.com/webassembly/emscripten-releases-builds/mac/b024b71038d1291ed7ec23ecd553bf2c0c8d6da6/wasm-binaries.tbz2': <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)>
Warning: Possibly SSL/TLS issue. Update or install Python SSL root certificates (2048-bit or greater) supplied in Python folder or https://pypi.org/project/certifi/ and try again.
Installation failed!

我已尝试运行以下命令来解决此问题,但并没有解决问题。

pip install certifi

任何其他解决该问题的建议都将受到欢迎。

4

1 回答 1

0

我能够使用 pyenv 将 python 版本升级到 3.8.0。升级帮助我解决了证书问题。

brew install pyenv
pyenv install 3.8.0

pyenv global 3.8.0 

或者如果在 emsdk 目录中:

pyenv local 3.8.0

该命令./emsdk install latest在 python 升级后成功运行。

于 2019-11-29T01:35:49.937 回答