-
Notifications
You must be signed in to change notification settings - Fork 286
Installing on raspberry pi #830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What do you get from running What pip version are you running? What does running the following Python command on your device give you? $ python -c 'import sysconfig; print(sysconfig.get_config_var("EXT_SUFFIX"))'
.cpython-311-x86_64-linux-gnu.so |
versions:
command:
|
Thanks. Can you also share the output of |
it's linux-armv6l |
I can't speak for why your build environment is not set up correctly, given that I believe we don't currently build for 32-bit arm. @messense do you know if it's reasonable for |
where can i find those prebuilded wheels? |
armv7l yes and That said, PyPI actually allows uploading |
I'm assuming the path is not set properly for cargo/rustc while pip is trying to build the wheel, might be worth trying to get some insight into why it's not detecting those, since that would presumably resolve the inability to build the wheel. |
It's very unlikely that a raspberry pi zero w (1GHz BCM2835 single-core processor with 512MB RAM) can successfully build |
https://www.piwheels.org/project/pydantic-core/ - maybe we can work with |
It looks like piwheels/piwheels#328 may fix this. Perhaps the most productive route is to offer help on that issue. |
Does samuelcolvin/watchfiles#149 help at all? In particular, what happens if you run the following? ip install -i https://pypi.org/simple/ 'pydantic>=2' |
That won't help because rpi zero w is linux armv6l, pydantic-core only has pre-built wheels for linux armv7l. |
Im installing fastAPI on a raspberry pi B+ right now on debian 12. I had to apt install rustc first. It's currently building pydantic_core now. Not sure if it will finish on this 700Mhz cpu. I'll update when I check on it later. |
Have you tried
??? |
As @messense said, it has to be built as there is no pre-built wheels for linux armv7l. I gave up on fastAPI because because I couldn't get pydantic-core to build locally. My pi hung on getting the cargo index (a separate but related issue I couldn't get around). Since my home project is simple, I just switched to flask. ¯\(ツ)/¯ |
@ctomkow sorry, you've had a frustrating time. What I think @messense said was that we don't have pre-build binaries for armv6l, only for armv7l. Search https://pypi.org/project/pydantic-core/#files for What do you get when running |
@ctomkow it should now be possible to install |
@samuelcolvin @davidhewitt I ran
None of these tags match any wheel from https://www.piwheels.org/project/pydantic-core/ for 2.14.1, for example. |
Isn't the top tag compatible with https://www.piwheels.org/simple/pydantic-core/pydantic_core-2.14.1-cp311-cp311-linux_armv6l.whl#sha256=3fb9eb0cc519f949c27c6ec49c552bc14e439867038304256a9bf139d76b8659 ? What happens if you download and try to install that file manually? Can you check if you have the piwheels index configured as per their faq? |
Ah, you are right. I now have put 2 and 2 together regarding your piwheels comment (I actually didn't know piwheels was an index, I guess I just assumed it was a mirror/explorer of PyPI or something :/ even though your comment was very clear). I For future people, just add piwheels index to pip.conf. https://www.piwheels.org/faq.html
Thanks @davidhewitt and @samuelcolvin for the help! |
Great! I think I will close this as resolved 👍 |
For anyone using Poetry, can add below to your [[tool.poetry.source]]
name = "piwheels"
url = "https://www.piwheels.org/simple/" |
im using rpi zero w. what could be the problem? i've downloaded rust and cargo and added them to path
Selected Assignee: @samuelcolvin
The text was updated successfully, but these errors were encountered: