Vision: have some problem when make torchvision

Created on 11 Mar 2020  ยท  4Comments  ยท  Source: pytorch/vision

โ“ Questions and Help

Please note that this issue tracker is not a help form and this issue will be closed.

We have a set of listed resources available on the website. Our primary means of support is our discussion forum:

awaiting response needs discussion needs reproduction build

Most helpful comment

Hi,

It looks like you don't have ffmpeg available in your system, or the include files are not in the expected directory.

Can you give more information about your system?

Also, if you don't need ffmpeg and the video reading functionality, you can just disable this branch https://github.com/pytorch/vision/blob/cca0c77a9ac5aa782b0811d850f246d73b0b4a1b/setup.py#L132
with a False, so that the video reading functionality won't be compiled.

Plus, we have recently fixed some issues with our nightly packages, so by tomorrow we should have new nightly packages available, so that you can avoid compiling torchvision yourself.

All 4 comments

/vision/torchvision/csrc/cpu/video_reader/FfmpegHeaders.h:4:10: fatal error: libavcodec/avcodec.h: No such file or directory
#include
^~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1

Hi,

It looks like you don't have ffmpeg available in your system, or the include files are not in the expected directory.

Can you give more information about your system?

Also, if you don't need ffmpeg and the video reading functionality, you can just disable this branch https://github.com/pytorch/vision/blob/cca0c77a9ac5aa782b0811d850f246d73b0b4a1b/setup.py#L132
with a False, so that the video reading functionality won't be compiled.

Plus, we have recently fixed some issues with our nightly packages, so by tomorrow we should have new nightly packages available, so that you can avoid compiling torchvision yourself.

thanks , I no need for ffmpeg at this time. I only use for image.

This issue appears to be stale, so I'm closing it. If you think it should remain open, feel free to reopen it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

a-maci picture a-maci  ยท  3Comments

iacolippo picture iacolippo  ยท  4Comments

ArashJavan picture ArashJavan  ยท  3Comments

chinglamchoi picture chinglamchoi  ยท  3Comments

ibtingzon picture ibtingzon  ยท  3Comments