2016-09-17 222 views
1

我是新來的以太坊,所以這可能是一個愚蠢的問題。無法安裝pyethereum模塊

現在我試圖根據這個tutorial安裝蛇和pyethereum。一切正常,但是當我發起的Python代碼:

import serpent 
import pyethereum 

有一個錯誤:No module named pyethereum

我怎樣才能解決呢?

回答

4

該模塊的名稱是ethereum,而不是pyethereum。使用以下內容:

import serpent 
import ethereum 

應該工作得很好。

+0

非常感謝!對於那些閱讀[Serpent教程](https://mc2-umd.github.io/ethereumlab/docs/serpent_tutorial.pdf)的人 - 現在已經過時了:( –

1

按照從Pytherium's Readme的安裝說明,其內容如下:

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

在本教程中的指示,develop分支使用,這似乎是按照持續集成徽章被失敗。

+0

不,它不適合我。我完全刪除了以前的pyethereum文件夾,重複您的指示,但仍然是相同的錯誤。 –