You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: failed to run custom build command for `pyo3 v0.7.0`
Caused by:
process didn't exit successfully: `/web/target/release/build/pyo3-23c79148396499f4/build-script-build` (exit code: 1)
--- stderr
Error: "Could not find any interpreter at python, are you sure you have python installed on your PATH?"
Workaround
I was able to fix this temporarily by adding the following to my Dockerfile:
# Force python to be python3.RUN rm -f /usr/bin/python && ln -s /usr/bin/python3 /usr/bin/python
I notice that on the main README.md it is stated to run the following on Ubuntu:
sudo apt install python3-dev python-dev
However, I would prefer to only install python3-dev to minimize downloads, build time, etc for Docker. I feel like if just linking python to python3 works, it should probably also support discovering python3 and running python3 on the system.
Basically, another way to word this ticket is "Remove build dependency on Python 2".
The text was updated successfully, but these errors were encountered:
🌍 Environment
💥 Reproducing
Add this dependency:
pyo3 = "0.7.0"
Now build your code. You will see the following:
Workaround
I was able to fix this temporarily by adding the following to my Dockerfile:
I notice that on the main
README.md
it is stated to run the following on Ubuntu:However, I would prefer to only install
python3-dev
to minimize downloads, build time, etc for Docker. I feel like if just linking python to python3 works, it should probably also support discovering python3 and running python3 on the system.Basically, another way to word this ticket is "Remove build dependency on Python 2".
The text was updated successfully, but these errors were encountered: