{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/python/issues/341","repository_url":"https://api.github.com/repos/docker-library/python","labels_url":"https://api.github.com/repos/docker-library/python/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/python/issues/341/comments","events_url":"https://api.github.com/repos/docker-library/python/issues/341/events","html_url":"https://github.com/docker-library/python/issues/341","id":365564464,"node_id":"MDU6SXNzdWUzNjU1NjQ0NjQ=","number":341,"title":"Cannot install torch 0.4.1.post2 on python:3.7-alpine","user":{"login":"JesseTG","id":1175189,"node_id":"MDQ6VXNlcjExNzUxODk=","avatar_url":"https://avatars0.githubusercontent.com/u/1175189?v=4","gravatar_id":"","url":"https://api.github.com/users/JesseTG","html_url":"https://github.com/JesseTG","followers_url":"https://api.github.com/users/JesseTG/followers","following_url":"https://api.github.com/users/JesseTG/following{/other_user}","gists_url":"https://api.github.com/users/JesseTG/gists{/gist_id}","starred_url":"https://api.github.com/users/JesseTG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JesseTG/subscriptions","organizations_url":"https://api.github.com/users/JesseTG/orgs","repos_url":"https://api.github.com/users/JesseTG/repos","events_url":"https://api.github.com/users/JesseTG/events{/privacy}","received_events_url":"https://api.github.com/users/JesseTG/received_events","type":"User","site_admin":false},"labels":[{"id":108477885,"node_id":"MDU6TGFiZWwxMDg0Nzc4ODU=","url":"https://api.github.com/repos/docker-library/python/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-01T17:31:06Z","updated_at":"2018-10-01T19:08:12Z","closed_at":null,"author_association":"NONE","body":"I'm trying to install [PyTorch](https://pytorch.org) version 0.4.1 on the `python:3.7-alpine` image.  However, `pip3.7` only sees 0.1.2:\r\n\r\n```\r\n/ # pip3.7 install --no-cache-dir torch\r\nCollecting torch\r\n  Downloading https://files.pythonhosted.org/packages/5f/e9/bac4204fe9cb1a002ec6140b47f51affda1655379fe302a1caef421f9846/torch-0.1.2.post1.tar.gz\r\n    Complete output from command python setup.py egg_info:\r\n    Traceback (most recent call last):\r\n      File \"<string>\", line 1, in <module>\r\n      File \"/tmp/pip-install-xg7fjq4l/torch/setup.py\", line 11, in <module>\r\n        raise RuntimeError(README)\r\n    RuntimeError: PyTorch does not currently provide packages for PyPI (see status at https://github.com/pytorch/pytorch/issues/566).\r\n    \r\n    Please follow the instructions at http://pytorch.org/ to install with miniconda instead.\r\n    \r\n    \r\n    ----------------------------------------\r\nCommand \"python setup.py egg_info\" failed with error code 1 in /tmp/pip-install-xg7fjq4l/torch/\r\n/ # \r\n```\r\n\r\nAnd yet, when searching for `torch`...\r\n\r\n```\r\n/ # pip3.7 search torch\r\n<snip for brevity>\r\ntorch (0.4.1.post2)        - Tensors and Dynamic neural networks in Python with strong GPU acceleration\r\n<snip for brevity>\r\n/ # \r\n```\r\n\r\n...you see that `pip3.7` finds version `0.4.1.post2`."},"comment":{"url":"https://api.github.com/repos/docker-library/python/issues/comments/426026398","html_url":"https://github.com/docker-library/python/issues/341#issuecomment-426026398","issue_url":"https://api.github.com/repos/docker-library/python/issues/341","id":426026398,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjAyNjM5OA==","user":{"login":"wglambert","id":26428991,"node_id":"MDQ6VXNlcjI2NDI4OTkx","avatar_url":"https://avatars2.githubusercontent.com/u/26428991?v=4","gravatar_id":"","url":"https://api.github.com/users/wglambert","html_url":"https://github.com/wglambert","followers_url":"https://api.github.com/users/wglambert/followers","following_url":"https://api.github.com/users/wglambert/following{/other_user}","gists_url":"https://api.github.com/users/wglambert/gists{/gist_id}","starred_url":"https://api.github.com/users/wglambert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wglambert/subscriptions","organizations_url":"https://api.github.com/users/wglambert/orgs","repos_url":"https://api.github.com/users/wglambert/repos","events_url":"https://api.github.com/users/wglambert/events{/privacy}","received_events_url":"https://api.github.com/users/wglambert/received_events","type":"User","site_admin":false},"created_at":"2018-10-01T19:08:12Z","updated_at":"2018-10-01T19:08:12Z","author_association":"NONE","body":"Alpine uses a different `libc`: `musl`, compared to `glibc`. And the `.whl` format is not compatible with musl. And also that some packages for `pip` are only offered in `.whl` format\r\nhttps://github.com/docker-library/docs/issues/904\r\nhttps://github.com/pypa/manylinux/issues/37\r\nhttps://github.com/pypa/pip/issues/3969\r\n\r\nhttps://github.com/pypa/manylinux\r\n>The manylinux1 tags allow projects to distribute wheels that are automatically installed (and work!) on the vast majority of desktop and server Linux distributions.\r\n\r\nDocs on the alpine image variant\r\nhttps://github.com/docker-library/docs/tree/master/python#pythonversion-alpine"}}
{"actor":{"display_login":"wglambert"}}