Skip to content
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

Dependency Conflict (when installing Kernel) #13267

Open
1 task done
mridun-gupta opened this issue Mar 6, 2025 · 5 comments
Open
1 task done

Dependency Conflict (when installing Kernel) #13267

mridun-gupta opened this issue Mar 6, 2025 · 5 comments
Labels
C: error messages Improving error messages

Comments

@mridun-gupta
Copy link

Description

I was trying to connect my Python kernel to Jupyter notebook, and upon trying to connect. I was continuously getting the Error which I don't get when switched to 3.13.2.

Expected behavior

No response

pip version

25.0.1

Python version

3.14a05

OS

Windows

How to Reproduce

Run pip install ipykernel

Output

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip to attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Code of Conduct

@mridun-gupta mridun-gupta added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Mar 6, 2025
@notatallshaw notatallshaw added C: error messages Improving error messages and removed type: bug A confirmed bug or unintended behavior S: needs triage Issues/PRs that need to be triaged labels Mar 6, 2025
@notatallshaw
Copy link
Member

notatallshaw commented Mar 6, 2025

The error, at least for ipykernel==6.29.5 is correct, but not overly helpful as to why there is a ResolutionImpossible.

ipykernel depends on jupyter-core, and on Windows jupyter-core depends on pywin32, and pywin32 has no package available for Python 3.14: https://pypi.org/project/pywin32/#files.

@notatallshaw
Copy link
Member

Here is a much nicer error from uv:

> uv pip install --dry-run ipykernel==6.29.5
...
hint: You require CPython 3.14 (`cp314`), but we only found wheels for `pywin32` (v308) with the following Python ABI tags: `cp37m`, `cp38`, `cp39`, `cp310`, `cp311`, `cp312`, `cp313`

@mridun-gupta
Copy link
Author

Thank you @notatallshaw for guiding.

@notatallshaw
Copy link
Member

FYI, technically you could install the much older ipykernel==6.10.0, as it does not depend on pywin32, but installing much older libraries on much newer versions of Python is rarely desirable.

It is a bug that the current version of pip does not attempt to backtrack to this old version of ipykernel, this will be somewhat solved by #13001 in the next release. However in the next version of Python you will reach ResolutionTooDeep as the search space is currently too large for pip to solve (continuing to make improvements there).

@mridun-gupta
Copy link
Author

mridun-gupta commented Mar 6, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: error messages Improving error messages
Projects
None yet
Development

No branches or pull requests

2 participants