I'm trying to install couple of modules via pip into custom directory using flag --target.
e.g.:
pip3 install --target /custom/module/location /path/to/package1
Everything works just fine. By adding /custom/module/location to PYTHONPATH I can use my package1.
But when I try to install package2 which requires package1 (located in /custom/module/location) pip throws:
Could not find a version that satisfies the requirement ...
No matching distribution found ...
Basically:
PYTHONPATH=/custom/module/location
pip3 install --target /custom/module/location /path/to/package1
pip3 install --target /custom/module/location /path/to/package2
does not work, but
pip3 install --user /path/to/package1
pip3 install --user /path/to/package2
works just fine. Is there any way of telling pip to look into custom location /custom/module/location other than PYTHONPATH?
btw when using first method, pip3 list can see the package1