This works for me:
$ pip install -r requirements.txt --no-index --find-links file:///tmp/packages
--no-index
- Ignore package index (only looking at --find-links
URLs instead).
-f, --find-links
- If a URL or path to an html file, then parse for links to archives. If a local path or file://
URL that's a directory, then look for archives in the directory listing.
manpreet
Best Answer
2 years ago
Here is the problem
I have a requirements.txt that looks like:
I have a local archive directory containing all the packages + others.
I have created a new virtualenv with
upon activating it, I tried to install the packages according to requirements.txt from the local archive directory.
I got some output that seems to indicate that the installation is fine
But later check revealed none of the package is installed properly. I cannot import the package, and none is found in the site-packages directory of my virtualenv. So what went wrong?