【发布时间】:2020-09-03 06:40:33
【问题描述】:
我在尝试在我的 Windows 10 机器上为 Jupyter Notebook 设置 pypy3 内核时遇到问题。
按照这两个其他相关线程(1、2)的说明,我已将ipykernel 与命令pypy3 -m pip install ipykernel 一起使用,但似乎安装在某些时候遇到了错误:
Collecting ipykernel
Using cached ipykernel-5.2.1-py3-none-any.whl (118 kB)
Collecting ipython>=5.0.0
Using cached ipython-7.14.0-py3-none-any.whl (782 kB)
Collecting traitlets>=4.1.0
Using cached traitlets-4.3.3-py2.py3-none-any.whl (75 kB)
Collecting jupyter-client
Using cached jupyter_client-6.1.3-py3-none-any.whl (106 kB)
Collecting tornado>=4.2
Using cached tornado-6.0.4.tar.gz (496 kB)
Requirement already satisfied: setuptools>=18.5 in c:\pypy3\site-packages (from ipython>=5.0.0->ipykernel) (44.0.0)
Collecting jedi>=0.10
Using cached jedi-0.17.0-py2.py3-none-any.whl (1.1 MB)
Collecting decorator
Using cached decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Collecting pickleshare
Using cached pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0
Using cached prompt_toolkit-3.0.5-py3-none-any.whl (351 kB)
Collecting pygments
Using cached Pygments-2.6.1-py3-none-any.whl (914 kB)
Collecting backcall
Using cached backcall-0.1.0.tar.gz (9.7 kB)
Collecting colorama; sys_platform == "win32"
Using cached colorama-0.4.3-py2.py3-none-any.whl (15 kB)
Collecting ipython-genutils
Using cached ipython_genutils-0.2.0-py2.py3-none-any.whl (26 kB)
Collecting six
Using cached six-1.14.0-py2.py3-none-any.whl (10 kB)
Collecting jupyter-core>=4.6.0
Using cached jupyter_core-4.6.3-py2.py3-none-any.whl (83 kB)
Collecting pyzmq>=13
Using cached pyzmq-19.0.1.tar.gz (1.2 MB)
Collecting python-dateutil>=2.1
Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting parso>=0.7.0
Using cached parso-0.7.0-py2.py3-none-any.whl (100 kB)
Collecting wcwidth
Using cached wcwidth-0.1.9-py2.py3-none-any.whl (19 kB)
ERROR: Could not find a version that satisfies the requirement pywin32>=1.0; sys_platform == "win32" (from jupyter-core>=4.6.0->jupyter-client->ipykernel) (from versions: none)
ERROR: No matching distribution found for pywin32>=1.0; sys_platform == "win32" (from jupyter-core>=4.6.0->jupyter-client->ipykernel)
是否有可能绕过 pywin32 错误?
任何帮助将不胜感激。
【问题讨论】:
-
我认为您需要打开 ipykernel 和/或 pywin32 的问题。由于 pywin32 不支持 PyPy,要么 ipykernel 需要解决方法,要么 pywin32 应该支持 PyPy。
-
@mattip 谢谢你的指点,我可能会同时打开一个问题。
-
pywin32 不是 ipykernel 直接需要的。它似乎曾经是 jupyter_client 的依赖项,但它有 been changed。能不能浏览一下这里的包列表,找到哪个还依赖于pywin32?
-
啊,我看确实是jupyter_client,需要向右滚动。我想知道为什么仍然需要它?
标签: python jupyter-notebook jupyter pywin32 pypy