python3 pip binary wheels issues
I can’t install any binary wheel package using pip:
$ docker run --rm -it alpine:3.8
/ # apk add --no-cache -U python3 python3-dev py3-virtualenv
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
(1/14) Installing libbz2 (1.0.6-r6)
(2/14) Installing expat (2.2.5-r0)
(3/14) Installing libffi (3.2.1-r4)
(4/14) Installing gdbm (1.13-r1)
(5/14) Installing xz-libs (5.2.4-r0)
(6/14) Installing ncurses-terminfo-base (6.1-r0)
(7/14) Installing ncurses-terminfo (6.1-r0)
(8/14) Installing ncurses-libs (6.1-r0)
(9/14) Installing readline (7.0.003-r0)
(10/14) Installing sqlite-libs (3.24.0-r0)
(11/14) Installing python3 (3.6.4-r1)
(12/14) Installing py3-virtualenv (15.1.0-r0)
(13/14) Installing pkgconf (1.5.3-r0)
(14/14) Installing python3-dev (3.6.4-r1)
Executing busybox-1.28.4-r0.trigger
OK: 79 MiB in 27 packages
/ #
/ # virtualenv -p python3 venv
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /venv/bin/python3
Also creating executable in /venv/bin/python
Installing setuptools, pip, wheel...done.
/ # . venv/bin/activate
(venv) / #
(venv) / # pip install https://files.pythonhosted.org/packages/3f/4e/b9a5cb7c7451029f67f93426cbb5f5bebedc3f9a8b0a470de7d0d7883602/psycopg2_binary-2.7.5-cp36-cp36m-manylinux1_x86_64.whl
psycopg2_binary-2.7.5-cp36-cp36m-manylinux1_x86_64.whl is not a supported wheel on this platform.
(venv) / #
After some googling i discovered probable cause. This is on alpine:
# python3
Python 3.6.4 (default, May 1 2018, 11:38:09)
[GCC 6.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.architecture()
('64bit', '')
>>>
This is on Debian where binary wheels are installing successfully:
% python3
Python 3.6.5 (default, May 11 2018, 13:30:17)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.architecture()
('64bit', 'ELF')
>>>
(from redmine: issue id 9206, created on 2018-08-08)