无法安装pyethereum modu

2024-06-06 16:00:01 发布

您现在位置:Python中文网/ 问答频道 /正文

我是以太坊的新人,所以这可能是个愚蠢的问题。在

现在我正试图根据这个tutorial安装serpent和pyethereum。一切都很好,但是当我启动Python的代码时:

import serpent
import pyethereum

出现错误:No module named pyethereum

我该怎么解决呢?在


Tags: no代码import错误tutorialnamedmodulepyethereum
2条回答

按照Pytherium's Readme中的安装说明进行操作,其内容如下:

git clone https://github.com/ethereum/pyethereum/
cd pyethereum
python setup.py install

在本教程的说明中,使用了develop分支,根据持续集成标识,这似乎失败了。在

模块的名称是ethereum,而不是pyethereum。使用以下方法:

import serpent
import ethereum

应该能正常工作。在

相关问题 更多 >