简体   繁体   中英

M1 Mac: Running Brownie Python

Trying to run brownie but running into the following issues:


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

Brownie has a dependency on the regex module, and its most recent version installs incorrectly on M1 Macs. See here for more commentary.

As a workaround, you could try the following in an environment with Brownie installed:

pip uninstall regex
pip install regex==2021.9.30
# to verify this is working
brownie init new_proj

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM