Skip to main content
 首页 » 编程设计

python之无法安装 pyethereum 模块

2025年05月04日27jiqing9006

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

现在我正在尝试根据这个 tutorial 安装 serpent 和 pyethereum .一切正常,但是当我启动 Python 代码时:

import serpent 
import pyethereum 

出现错误:No module named pyethereum

我该如何解决?

请您参考如下方法:

该模块的名称是ethereum,而不是pyethereum。使用以下内容:

import serpent 
import ethereum 

应该可以正常工作。