Следуйте подсказке графического интерфейса, нажмите «Установить», но он Alwasys застрял в каком -то месте для часов. Выход ячейки, который
Код: Выделить всё
"c:/Users/J Doe/Documents/Workspace/Mathematics note/A First Course in Probability/.venv/Scripts/python.exe" -m pip install ipykernel -U --force-reinstall< /code>
, который устанавливает ipykernel в виртуальной среде.
Через долгое время он наконец -то выбрасывает ошибку, как ниже: < /li>
< /ol>
Collecting comm>=0.1.1 (from ipykernel==6.29.5)
Downloading comm-0.2.1-py3-none-any.whl.metadata (3.7 kB)
ERROR: Cannot install ipykernel because these package versions have conflicting dependencies.
The conflict is caused by:
jupyter-core 5.8.1 depends on pywin32>=300; sys_platform == "win32" and platform_python_implementation != "PyPy"
jupyter-core 5.8.0 depends on pywin32>=300; sys_platform == "win32" and platform_python_implementation != "PyPy"
jupyter-core 5.7.2 depends on pywin32>=300; sys_platform == "win32" and platform_python_implementation != "PyPy"
jupyter-core 5.7.1 depends on pywin32>=300; sys_platform == "win32" and platform_python_implementation != "PyPy"
jupyter-core 5.7.0 depends on pywin32>=300; sys_platform == "win32" and platform_python_implementation != "PyPy"
jupyter-core 5.6.1 depends on pywin32>=300; sys_platform == "win32" and platform_python_implementation != "PyPy"
jupyter-core 5.5.1 depends on pywin32>=300; sys_platform == "win32" and platform_python_implementation != "PyPy"
jupyter-core 5.5.0 depends on pywin32>=300; sys_platform == "win32" and platform_python_implementation != "PyPy"
jupyter-core 5.4.0 depends on pywin32>=300; sys_platform == "win32" and platform_python_implementation != "PyPy"
jupyter-core 5.3.2 depends on pywin32>=300; sys_platform == "win32" and platform_python_implementation != "PyPy"
jupyter-core 5.3.1 depends on pywin32>=300; sys_platform == "win32" and platform_python_implementation != "PyPy"
jupyter-core 5.3.0 depends on pywin32>=300; sys_platform == "win32" and platform_python_implementation != "PyPy"
jupyter-core 5.2.0 depends on pywin32>=1.0; sys_platform == "win32" and platform_python_implementation != "PyPy"
jupyter-core 5.1.5 depends on pywin32>=1.0; sys_platform == "win32" and platform_python_implementation != "PyPy"
jupyter-core 5.1.4 depends on pywin32>=1.0; sys_platform == "win32" and platform_python_implementation != "PyPy"
jupyter-core 5.1.3 depends on pywin32>=1.0; sys_platform == "win32" and platform_python_implementation != "PyPy"
jupyter-core 5.1.2 depends on pywin32>=1.0; sys_platform == "win32" and platform_python_implementation != "PyPy"
jupyter-core 5.1.1 depends on pywin32>=1.0; sys_platform == "win32" and platform_python_implementation != "PyPy"
jupyter-core 5.1.0 depends on pywin32>=1.0; sys_platform == "win32" and platform_python_implementation != "PyPy"
jupyter-core 4.12.0 depends on pywin32>=1.0; sys_platform == "win32" and platform_python_implementation != "PyPy"
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
PS C:\Users\J Doe\Documents\Workspace\Mathematics note\A First Course in Probability> pip install pywin32
ERROR: Could not find a version that satisfies the requirement pywin32 (from versions: none)
ERROR: No matching distribution found for pywin32
< /code>
Я установил Python не так давно, так что это должна быть самая новая версия. Я также запускаю актуальную vscode
поиск в Интернете и AI, который предложил несовместимую версию Pywin32 и Python 3.13, однако
, когда я открываю PYPI и поиск, поддерживается 3.13. Также упомянутые могут быть связаны с проблемой сети,
, но это не проблема для меня, так как я могу успешно и быстро установить ipykernel и быстро за пределами виртуального
образного /> Также я использую компьютер Windows, поэтому он не должен связан с платформой ОС. В виртуальной среде, как упоминалась предыдущая ошибка Pywin32.
, но она не удается < /p>
(.venv) PS C:\Users\J Doe> pip install pywin32
ERROR: Could not find a version that satisfies the requirement pywin32 (from versions: none)
ERROR: No matching distribution found for pywin32
(.venv) PS C:\Users\J Doe> pip list
Package Version
------- -------
pip 25.1.1
запуск PIP установить ipykernel и pip установить pywin32 успешно установить пакеты.
Подробнее здесь: https://stackoverflow.com/questions/796 ... el-in-venv