Python编译器在Raspberry Pi上的固体性4

发布于 2025-02-10 05:38:06 字数 1490 浏览 0 评论 0 原文

我希望将坚固的合同汇总到Python语言中。被指示在我的Raspberry Pi 4上运行以下命令,“ PIP install py-solc-x”。输出如下:

在索引中查看: https://pypi.org/simple “ https://www.piwheels.org/simple” rel =“ nofollow noreferrer”> https://www.piwheels.org/simple 需求已经满足:/home/talbot-raspberry/.local/lib/python3.9/site-packages(1.1.1) 需求已经满足:请求< 3,> = 2.19.0 in/usr/lib/python3/dist包装(来自py-solc-x)(2.25.1) 需求已经满足:语义 - lt; 3,> = 2.8.1 in/home/talbot-raspberry/.local/local/lib/python3.9/site-packages(来自py-solc-x)(2.10.0)(2.10.0

)使我相信Py-Solc-X已准备好汇编我的坚固性。但是,当寻找打印和运行python deploy.py命令时。

decloy.py是文件名

我然后将接收以下输出:

trackback(最近的电话): 文件“/home/talbot-raspberry/demos/web3_py_simple_storage/deploy.py”,第8行,in compiled_sol = compile_standard( 文件“/home/talbot-raspberry/.local/lib/python3.9/site-packages/solcx/main.py”,第371行,in Compile_standard solc_binary = get_executable(solc_version) 文件“/home/talbot-raspberry/.local/lib/python3.9/site-packages/solcx/install.py”,第194行,在get_executable中 提高SolcnotinStalled( solcx.exceptions.solcnotinstalled:尚未安装SOLC 0.6.0。使用solcx.install_solc('0.6.0')安装。

这使我寻找覆盖raspberry Pi 4兼容下载。即使通过以下GitHub链接下载后,AM仍然遇到相同的输出。

您建议采取的行动是什么?谢谢你!

Am looking to compile Solidity contract into the Python language. Was directed to run the following command on my Raspberry Pi 4, "pip install py-solc-x". The output is as follows:

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: py-solc-x in /home/talbot-raspberry/.local/lib/python3.9/site-packages (1.1.1)
Requirement already satisfied: requests<3,>=2.19.0 in /usr/lib/python3/dist-packages (from py-solc-x) (2.25.1)
Requirement already satisfied: semantic-version<3,>=2.8.1 in /home/talbot-raspberry/.local/lib/python3.9/site-packages (from py-solc-x) (2.10.0)

That leads me to believe that py-solc-x is ready to compile my Solidity. However, when looking to print and running the python deploy.py command.

deploy.py is the file name

I would then receive the following output:

Traceback (most recent call last):
File "/home/talbot-raspberry/demos/web3_py_simple_storage/deploy.py", line 8, in
compiled_sol = compile_standard(
File "/home/talbot-raspberry/.local/lib/python3.9/site-packages/solcx/main.py", line 371, in compile_standard
solc_binary = get_executable(solc_version)
File "/home/talbot-raspberry/.local/lib/python3.9/site-packages/solcx/install.py", line 194, in get_executable
raise SolcNotInstalled(
solcx.exceptions.SolcNotInstalled: solc 0.6.0 has not been installed. Use solcx.install_solc('0.6.0') to install.

This lead me to look for a Raspberry Pi 4 compatible download. Even after downloading through the below github link, am still running into the same outputs.

https://github.com/iamdefinitelyahuman/py-solc-x/issues/86#issuecomment-1164832763

What would be your suggested course of action? Thank you!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文