cannot build on the mac m1 bacause of py03 #1678
Answered
by
Xuanwo
hawkingrei
asked this question in
Q&A
-
it will fail to build when I operate on the mac m1
|
Beta Was this translation helpful? Give feedback.
Answered by
Xuanwo
Mar 18, 2023
Replies: 2 comments
-
I suspect that the shared library was not installed with your Python environment. Please refer to PyO3/pyo3#2136 for further assistance. |
Beta Was this translation helpful? Give feedback.
0 replies
-
It's recommand to use And adding the following env: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Xuanwo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's recommand to use
pyenv
to init a python version: https://pyo3.rs/v0.18.1/getting_started#pythonAnd adding the following env:
PYTHON_CONFIGURE_OPTS="--enable-shared"