Say I've got a Python package called foo-py
, which is dependent on lxml
.
I downloaded foo-py
from PyPI and I want to install foo-py
to C:\Users\Me\SomePythonProgram\Modules
without pip attempting to resolve the lxml
dependency via PyPI. Again, just to be clear, I want to do this without pip contacting the outside world. Both foo-py
and its dependencies exist locally.
I am not using a virtual environment.
How do I accomplish this? Is this possible?
Things I've tried: On Git Bash for Windows, I have tried using pip -t [target] -e [source] --find-links=file://[target]
to no avail. pip's options are somewhat nebulous and routinely result in pip dialing out to PyPI. I have also tried python setup.py install
, which erroneously throws some error about how the target directory isn't in the $PYTHONPATH
, even when the $PYTHONPATH
to [target]
is explicitly exported. This approach also attempts to create a /lib/python
directory in [target], which is undesirable and bewildering, as everything other package in the ~/Modules
directory has a flat directory structure.
Edit: I could ignore the dependencies, but I want to be sure that pip is making sure that foo-py
's dependencies are satisfied.
Edit 2: There is no requirements.txt
file.