Skip to content

Anyway to override subdependency of a dependency? #8281

Answered by rokm
tigerinus asked this question in Help
Discussion options

You must be logged in to vote

As far as PyInstaller is concerned, if you want opencv-python-headless collected instead of opencv-python, you should ensure that the former is available/installed in the build environment instead of the latter.

I.e., you could remove opencv-python and install opencv-python-headless after installing whatever pulled opencv-python in, and before running PyInstaller:

...
pip uninstall opencv-python
pip install opencv-python-headless
...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tigerinus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants