gpt4 book ai didi

python - 将 pypy3 设置为 Jupyter Notebook 的内核时出现问题

转载 作者:行者123 更新时间:2023-12-03 17:32:32 25 4
gpt4 key购买 nike

我在尝试在我的 Windows 10 机器上为 Jupyter Notebook 设置 pypy3 内核时遇到问题。

按照这两个其他相关线程( 12 )的说明,我使用了 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错误 ?

任何帮助将不胜感激。

最佳答案

对于 Python,模块使用 CPython 编译,对于 PYPY,这些模块使用 RPython 编译。

如果没有合适的模块可用或存在导入错误,您可以按照此处 pypy 文档中的说明进行尝试。

https://doc.pypy.org/en/latest/faq.html#module-xyz-does-not-work-with-pypy-importerror

如果是python,我们可以手动下载合适的模块
并从这里将它们安装在默认的站点包文件夹中:

https://pypi.org/project/pywin32/#files

关于python - 将 pypy3 设置为 Jupyter Notebook 的内核时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61853103/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com