将 pypy 内核安装到 jupyter notebook 时出现问题

Issue whilst installing the pypy kernel to jupyter notebook

我正在尝试将 pypy3 安装到 jupyter notebook,但是在执行此操作时,它在 cmd 安装期间在源代码位给我一个错误。我在 windows 10 64 位系统上。这一点会影响什么吗,从我对大文件的回测来看,与 python 相比,运行时并没有那么好,这让我相信 pypy 无法正常工作。我正在尝试执行关于堆栈溢出的前一个问题的答案:。即使 source PyPy3/bin/activate 部分代码不起作用,pypy 内核也会出现在 jupyter notebook 上。

jupyter notebook 安装的 cmd 代码:

pypy3 -m venv PyPy3
source PyPy3/bin/activate
pypy3 -m pip install ipykernel
ipython kernel install --user --name=PyPy3

cmd 结果 - 请注意,除 source PyPy3/bin/activate:

之外的所有其他命令都有效
C:\Users\maste>pypy3 -m venv PyPy3

C:\Users\maste>source PyPy3/bin/activate
'source' is not recognized as an internal or external command,
operable program or batch file.

Jupyter 笔记本:

您似乎正试图在 Windows 上的命令提示符中使用 source。那行不通,source 适用于 POSIX 环境。

相反,尝试:

PyPy3\Scripts\activate.bat

查看 venv documentation 了解更多信息。它包含这个方便的 table 激活虚拟环境的命令: