[英]M1 Mac: Running Brownie Python
Trying to run brownie
but running into the following issues:尝试运行brownie
但遇到以下问题:
ImportError: dlopen(/opt/homebrew/lib/python3.9/site-packages/regex/_regex.cpython-39-darwin.so,
2): no suitable image found. Did find:
/opt/homebrew/lib/python3.9/site-packages/regex/_regex.cpython-39-darwin.so:
code signature in (/opt/homebrew/lib/python3.9/site-packages/regex/_regex.cpython-39-darwin.so)
not valid for use in process using Library Validation:
Trying to load an unsigned library
Getting an error to load an unsigned lib for .cpython-39-darwin.so
为.cpython-39-darwin.so
加载未签名的库时.cpython-39-darwin.so
Brownie has a dependency on the regex
module, and its most recent version installs incorrectly on M1 Macs. Brownie 依赖于regex
模块,其最新版本在 M1 Mac 上安装不正确。 See here for more commentary.请参阅此处了解更多评论。
As a workaround, you could try the following in an environment with Brownie installed:作为解决方法,您可以在安装了 Brownie 的环境中尝试以下操作:
pip uninstall regex
pip install regex==2021.9.30
# to verify this is working
brownie init new_proj
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.