I am trying to create account for a user using web3.py in my local testrpc ethereum network. I have tried as per the documentation. But I am getting the error
AttributeError: 'Eth' object has no attribute 'account'
Code I am trying :
from web3 import Web3
w3 = Web3(YOUR_PROVIDER)
acct = w3.eth.account.create('KEYSMASH FJAFJKLDSKF7JKFDJ 1530')
I could see there is accounts object in for eth object but that is not what I need.
What am I doing wrong ? I could see there is another type of account which is called PersonalAccount in the doc
What is the difference between these two ?
pip install web3==3.16.1on a seperate virtualenv.I am getting the below error while running
– Bill Goldberg Nov 14 '17 at 10:08pip install -e . python from web3 import Web3pip install -e . python from web3 import Web3step. – Bill Goldberg Nov 14 '17 at 14:46