我试图按照官方指南在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。