2

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.

2

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.