-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Failed to install python modules using pip install base on python:2.7.15-alpine3.8 #349
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
see #318 . |
Alpine Linux doesn't support Python PEP513. So when you use Alpine Linux based image to install some packages, it needs to compile. (you must install gcc and other packages for this.) |
Thanks for you reply. I go see #318 and install gcc, still don't work. I want to know what's other packages, where can I know the list? I can pip install from python:2-stretch. |
I can't figure out why Alpine won't at least install those packages from source. I would highly recommend in your use case to just use Debian. The packages you're installing probably eclipse the size benefit of using Alpine and it seems you have to install most if not all of those packages from source on Alpine which currently exhibit numerous issues preventing their installation, whereas Debian can use manylinux wheels that install in literally 10 seconds. I had thought that Alpine can use Also if that's your complete If you want to continue troubleshooting this perhaps https://serverfault.com/questions/771211/docker-alpine-and-matplotlib is relevant to the compiling issues. I can't figure out why the packages won't build from source, perhaps it's dependencies? Regardless there's nothing we could change in the image to remedy this. You could try asking the Docker Community Forums, the Docker Community Slack, or Stack Overflow. See also docker-library/docs#904 and #341 (comment) which is odd as I couldn't get the 2.7 |
Hello, I want to install some python modules base on python:2.7.15-alpine3.8 but always failed.
Here is my
Dockerfile
:Here is my
requirements.txt
:There is too much warning or error information, I will post some of them.
I hope somebody knows why and how to fix. Thanks.
The text was updated successfully, but these errors were encountered: