-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How does pipx resolve conflicting subdependencies when using inject
option
#1577
Comments
As you injected both of them into the same virtual environment, it is very likely that the same issue will occur here. I would recommend you to install these two versions separately instead of injecting both of them in the same venv. |
thanks for the reply! so basically pipx under the hood uses |
Yes exactly! |
thanks, got it, just to clarify, I could do the same as |
Yes, except that |
got it, appreciate your help! |
Suppose I have a library
kywy
v1 that defines the dependency onnumpy==1.26.4
. Then I have akywy-server
app v5 that depends onkywy==1
and the matchingnumpy==1.26.4
. When Iall is good and I can run
$ kywy-server
.Now, I update the
kywy
version to v2 and change the dependency tonumpy==2.1.3
. It's now different tonumpy==1.26.4
used bykywy-server
. Then I want to inject this new kywy v2 into thekywy-server
:which would result into a collition of subdependencies:
kywy==2
requiresnumpy==2.1.3
, butkywy-server==5
which hasn't changed still requiresnumpy==1.26.4
. Pip would result into a subdeps conflict and won't resolve this automatically.I'm wondering how
pipx
handles it?The text was updated successfully, but these errors were encountered: