I am looking for a method to use pip or similar to install a list of python packages in a custom target directory (ex./mypath/python/pkgs/), but also to exclude / blacklist specific strong dependencies.
I want to exclude certain dependencies, as they already occur from a different installation path (for example, installing anaconda). I don't have the privilege of adding packages to the default python installation (and I don't want to).
I am currently using the -r and -t options for pip. But they did not find a way to exclude certain packages.
A pip command like this would be ideal:
pip install --log pip.log -r req.txt -t /mypath/pypkgs/ --exclude exclude.txt
--no-deps
not an option, as I need some of the dependencies.
I am currently using a python script to create packages that contain dependencies that I don't need:
pip install --log pip.log -r req.txt -t /mypath/python/pkgs/
and then (automatically) remove unnecessary dependencies after pip installation is complete.
I hope that some combination of pip commands can achieve what I'm looking for. I am using pip 7.1.2. Thanks!
Similarly, but I am not updating and want to specify the target path:
pip: service pack without updating a specific dependency
source
share