ignoring some dependencies when install with pip

Viewed 104

When installing a package with pip, is there a way to ignore (not install) some dependencies?

pip install [some package] --no-deps ignores all deps... but I'm only interested in ignoring a few.

1 Answers

I couldn't find builtin thing for this but maybe i can find workaround that will do this like those:

this option is really slow (because johnnydep is slow) but will do the trick

use johnnydep:

pip install johnnydep

and run it as:

python3 -m johnnydep ipython --output-format pinned -v 0 | grep -e <Your deps regex> | xargs pip install --no-deps

this will installed ipython and the deps base on the regex

Related