vision: Install failing from the master: Failed building wheel

๐Ÿ› Bug

To Reproduce

Steps to reproduce the behavior:

1.pip install -q git+https://github.com/pytorch/vision.git

Expected behavior

Build successfully without any error message

Environment

  • PyTorch / torchvision Version (e.g., 1.0 / 0.4.0): master
  • OS (e.g., Linux): ubuntu16.04
  • How you installed PyTorch / torchvision (conda, pip, source): pip
  • Build command you used (if compiling from source): pip install -q git+https://github.com/pytorch/vision.git
  • Python version: 3.6
  • CUDA/cuDNN version:
  • GPU models and configuration:
  • Any other relevant information: clang7

Additional context

It occurs a week ago and keeps failing. The error message is as follows:

+ pip install -q git+https://github.com/pytorch/vision.git
  Failed building wheel for torchvision
Command "/tmp/venv/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-req-build-7wrzlist/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-bbtn3535/install-record.txt --single-version-externally-managed --compile --install-headers /tmp/venv/include/site/python3.6/torchvision" failed with error code 1 in /tmp/pip-req-build-7wrzlist/

I suppose itโ€™s a bug from the master branch? If so, when can it be fixed? If not, how can I fix this? Thanks.

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 21 (4 by maintainers)

Most upvoted comments

@jcwchen glad it worked out for you, but I think we should still debug the cause of this. The README states that libjpeg-turbo can be used as a replacement of libjpeg, but this shouldnโ€™t be required.

@andfoy Could it be that we need a minimum requirement for libjpeg as well? It seems the previously installed versions

libjpeg-dev/now 8c-2ubuntu8 amd64 [installed,local]
libjpeg-turbo8/now 1.4.2-0ubuntu3.1 amd64 [installed,local]
libjpeg-turbo8-dev/now 1.4.2-0ubuntu3.1 amd64 [installed,local]
libjpeg8/now 8c-2ubuntu8 amd64 [installed,local]
libjpeg8-dev/now 8c-2ubuntu8 amd64 [installed,local]

were not enough and they had to install libjpeg-turbo>2.