【问题标题】:DLL load failed while importing winpty: The specified procedure could not be found导入winpty时DLL加载失败:找不到指定的过程
【发布时间】:2021-08-07 14:48:03
【问题描述】:

我在运行 Windows 8.1 的系统上安装了 JupyterLab。我没有使用 anaconda,但我已经使用以下命令在 python 安装上直接安装了 jupyterlab:pip install jupyterlabPython 版本:3.9.5

当我启动 jupyterlab 时,它没有启动并在我的命令行上显示以下屏幕。

[I 2021-05-18 03:46:08.899 ServerApp] jupyterlab | extension was successfully linked.
[W 2021-05-18 03:46:09.000 ServerApp] The 'min_open_files_limit' trait of a ServerApp instance expected an int, not the NoneType None.
[W 2021-05-18 03:46:10.225 ServerApp] Terminals not available (error was DLL load failed while importing winpty: The specified procedure could not be found.)
[I 2021-05-18 03:46:10.241 LabApp] JupyterLab extension loaded from d:\ds projects\ds\lib\site-packages\jupyterlab
[I 2021-05-18 03:46:10.241 LabApp] JupyterLab application directory is D:\DS Projects\ds\share\jupyter\lab
[I 2021-05-18 03:46:10.281 ServerApp] jupyterlab | extension was successfully loaded.
[I 2021-05-18 03:46:21.104 ServerApp] nbclassic | extension was successfully loaded.
[I 2021-05-18 03:46:21.487 ServerApp] Serving notebooks from local directory: D:\DS Projects
[I 2021-05-18 03:46:21.487 ServerApp] Jupyter Server 1.7.0 is running at:
[I 2021-05-18 03:46:21.487 ServerApp] http://localhost:8888/lab?token=28bc52a925d0808625cbd4254f6f92a0067faa2ae1bcb62d
[I 2021-05-18 03:46:21.487 ServerApp]     http://127.0.0.1:8888/lab?token=28bc52a925d0808625cbd4254f6f92a0067faa2ae1bcb62d
[I 2021-05-18 03:46:21.487 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

似乎 jupyterlab 启动然后由于某种原因关闭,我无法弄清楚。此外,我还收到一个弹出窗口,提示 Python 已停止工作

命令行显示某些 DLL 文件丢失。此外,它还说终端不可用。

【问题讨论】:

  • 如果您添加有关正在发生的事情的更多信息,我可能会提供帮助,该控制台不会显示任何错误。是使用一段时间后还是立即出现?
  • 你在使用 PowerShell 吗?
  • @krassowski 不,我正在使用命令行。

标签: python jupyter jupyter-lab


【解决方案1】:

TLDR,在您的环境中,尝试:

pip install pywin32==228

或 pywin32==225,或 227,或 300。

我最近遇到了类似的问题,并且可以使用 jupyter 可靠地重现它。对我来说,这是由于 pywin32 版本 301 的问题。您的可能类似(即使在您的问题发布后出现了 301)。

请在此处查看我的回复以获取更多详细信息和另一种可能的解决方案:https://stackoverflow.com/a/67912292/4705724

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-05
    • 1970-01-01
    • 2022-06-21
    • 1970-01-01
    • 1970-01-01
    • 2020-05-15
    • 1970-01-01
    相关资源
    最近更新 更多