-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Cannot install torch 0.4.1.post2 on python:3.7-alpine #341
Comments
I'm not familiar with python; it seems for the latest version the download is offered in a On the debian variant the package installs correctly, I might also add that the package is quite large relative to the base image at 497MB compressed; eclipsing the benefit of using an alpine base for the purpose of a smaller size. $ ls -lh
total 620M
-rw-rw-r-- 1 rei rei 28M Oct 1 11:26 python:3.7-alpine.tar.gz
-rw-rw-r-- 1 rei rei 48M Oct 1 11:23 python:3.7-slim-stretch.tar.gz
-rw-rw-r-- 1 rei rei 545M Oct 1 11:27 pytorch-python:3.7-slim-stretch.tar.gz |
I don't understand much about how Python software is actually packaged and distributed, but why wouldn't a wheel be supported on Alpine? |
Alpine uses a different https://github.com/pypa/manylinux
Docs on the alpine image variant |
To be clear, If you add the |
I see. So you can't do anything about this issue without doing one of the following:
Is my assessment correct? |
The
It's not that PyTorch definitely doesn't support musl, it just doesn't build packages for it. There also isn't a Python wheel format that can be uploaded to PyPI that supports musl. You could probably compile PyTorch from source for Alpine if you really wanted to but it probably wouldn't be worth the effort.
While such a thing does exist, I wouldn't recommend it as it can cause all kinds of problems. One of the major things in Alpine that makes it so small is that it uses musl and not glibc. You may as well just use one of the Debian-based |
(Closing, since there's nothing more we can do here.) |
Thank you anyway. |
I'm trying to install PyTorch version 0.4.1 on the
python:3.7-alpine
image. However,pip3.7
only sees 0.1.2:And yet, when searching for
torch
......you see that
pip3.7
finds version0.4.1.post2
.The text was updated successfully, but these errors were encountered: