断言错误:找不到类 NSProcessInfo

roy*_*650 5 python-3.x jupyter-lab

在 Python 3.6(也可能是 3.7)下运行 Jupyter Lab 内核会抛出:

AssertionError: Couldn't find Class NSProcessInfo

在 Python 3.8 中运行正常。

roy*_*650 4

显然,此问题仅发生在装有 Big Sur 操作系统的 Mac 上。此问题已提交修正,但您可以通过使用 pip 而不是 conda 安装 Jupyter Lab 来解决该问题。

pip install jupyterlab
Run Code Online (Sandbox Code Playgroud)

请参阅此参考:https ://github.com/jupyterlab/jupyterlab/issues/9410