安装 pip install web3.py 安装web3.py是会自动安装 eth-account 创建账号 使用web3的方式 from web3 import Web3 if __name__ == '__main__': w3 = Web3() acct = w3.eth.account.create() print(acct