python - 安装 Jupyter 和 pywinpty (Python) 时出错

标签 python jupyter

我正在尝试在 Python 3.7 上安装 Jupyter,但似乎一次又一次地被这个错误绊倒;

winpty/cywinpty.c(598): fatal error C1083: Cannot open include file: 'winpty.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

尝试通过 pip 安装 pywinpty 时出现同样的错误。

我已经安装并重新安装了构建工具,但都无济于事,而且命令窗口已提升 - 有什么想法吗?

更新:在 3.7 中没有完全解决 - 但它在 3.6 中运行良好,我已经回滚了。

最佳答案

暂时,直到标准方法不适用于 Python 3.7,您可以使用 Gohlke's collection 中的预构建轮手动安装 pywinpty然后使用 pip 安装 jupyter

要手动安装(从 cmdPowershell)使用: pip 安装驱动器:\path\to\the\wheel\pywinpty-0.5.4-cp37-cp37m-win_amd64.whl

关于python - 安装 Jupyter 和 pywinpty (Python) 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51260909/

相关文章:

python - 如何在 Jupyter 中实时绘图

python - SQLAlchemy + MariaDB : MySQL server has gone away

iphone - iPhone和数据库之间的抽象层

Python io 模块的 TextIOWrapper 或 BuffereRWPair 函数不能很好地与 pySerial 配合使用

python - jupyter "%matplotlib notebook"不显示情节

python - 像 Jupyter 一样使用 Atom

python - 在python csv中处理带有行标题的数据

python - 如何在 Python 中创建 "optional"参数?

python - 找不到Jupyter命令 `jupyter-lab`

python - 读取 txt 文件时交换位置