I need to install a python project on a machine without internet connection. During the creation of the deb package I downloaded all python requirements with pip download
and I putted them into the deb.
When installing the deb on the machine I get errors from python packages not being found and I discovered that packages creating problems are the ones specified into the field setup_requires
of setup.py
files of the included packages.
For example the PyJWT
package has setup_requires=['pytest-runner']
but pytest-runner
is not downloaded by pip download
and during the installation this gives error.
My question are:
- is there a way of having pip downloading all dependencies (also those on
setup_requires
fields)? - Is this the correct workflow for creating a deb that has to be installed offline?