无法在macOS上安装erdpy - pynacl的构建轮失败



我试图按照官方指南在macOS上安装erdpy,我成功地下载了erdpy-up,当我运行它时,我收到以下错误:

File "/opt/homebrew/Cellar/python@3.8/3.8.12/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 161, in run
raise Exception("ERROR: The 'make' utility is missing from PATH")
Exception: ERROR: The 'make' utility is missing from PATH
----------------------------------------
ERROR: Failed building wheel for pynacl
Failed to build pynacl
ERROR: Could not build wheels for pynacl which use PEP 517 and cannot be installed directly
CRITICAL:installer:Could not install erdpy.

在这之前,我看到:

Using legacy 'setup.py install' for cffi, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pycryptodomex, since package 'wheel' is not installed.
Building wheels for collected packages: pynacl
Building wheel for pynacl (PEP 517) ... error

尝试使用brew安装libsodium,但erdpy安装仍然失败。

是否有其他方法来安装/构建它?

我的系统上安装了make。日志信息不是很清楚,但最后我弄清楚了如何在我的Mac上安装erdpy。首先我安装了libsodium:

brew install libsodium

,然后我安装erdpy使用pip3:

pip3 install --user --upgrade --no-cache-dir erdpy

erdpy -v返回

erdpy 1.0.18

您的错误提示您没有安装make实用程序

执行

安装
brew install make

在您的终端。然后重试安装。

您也可以使用source ~/elrondsdk/erdpy-activate激活虚拟环境,然后使用pip3 install --upgrade --no-cache-dir erdpy

如果您使用的是M1处理器,则无法在Mac上安装它。您必须远程连接到linux系统。VS code有能力做到这一点,或者你可以使用parallels在本地运行linux VM。

相关内容

  • 没有找到相关文章

最新更新