Tag Archives: 16_ All kinds of mistakes and bugs (your pain, my pain, pain)

Error in installing torch vision or pilot on Linux or Jetson nano: the headers or library files could not be found for JPEG

1 error analysis

When I install torch vision on Jetson nano, I report an error (torch vision depends on the pilot Library): the headers or library files could not be found for JPEG, , and the error reason is that pilot needs JPEG dependency in the process of installing from source code

writing src/Pillow.egg-info/PKG-INFO
writing dependency_links to src/Pillow.egg-info/dependency_links.txt
writing top-level names to src/Pillow.egg-info/top_level.txt
reading manifest file 'src/Pillow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.c'
warning: no files found matching '*.h'
warning: no files found matching '*.sh'
warning: no previously-included files found matching '.appveyor.yml'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
no previously-included directories found matching '.ci'
writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
running build_ext


The headers or library files could not be found for jpeg,
a required dependency when compiling Pillow from source.

2 error resolution

To install pilot, you need to rely on the source code: JPEG JPEG

sudo apt-get install libjpeg-dev zlib1g-dev