I\'m installing several Python packages in Ubuntu 12.04 using the following requirements.txt
file:
numpy>=1.8.2,<2.0.0
matplotlib>=1.3.
This approach (having all dependencies in a directory and not downloading from an index) only works when the directory contains all packages. The directory should therefore contain all dependencies but also all packages that those dependencies depend on (e.g., six
, pytz
etc).
You should therefore manually include these in requirements.txt
(so that the first step downloads them explicitly) or you should install all packages using PyPI and then pip freeze > requirements.txt
to store the list of all packages needed.