我c了,Mac配置半天一直报错,windows随便配置就ok
Os:Windows
PythonVersion:3.9.8(python3.10会报错,建议不要使用python3.10)文章来源:https://www.toymoban.com/news/detail-530688.html
1.安装py-solc
pip3 install py-solc
注释solc源码中 clone-bin,否则会报错文章来源地址https://www.toymoban.com/news/detail-530688.html
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\dev\main.py", line 4, in <module>
a = compile_files(sol_file)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\solc\main.py", line 135, in compile_files
stdoutdata, stderrdata, command, proc = solc_wrapper(**compiler_kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\solc\utils\string.py", line 85, in inner
return force_obj_to_text(fn(*args, **kwargs))
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\solc\wrapper.py", line 164, in solc_wrapper
raise SolcError(
solc.exceptions.So
到了这里,关于使用python3编译并部署solidity合约的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!