安装Jupyter&时出错pywinpty(Python) [英] Error installing Jupyter & pywinpty (Python)
问题描述
我正在尝试在 Python 3.7 上安装Jupyter,并且似乎一次又一次地因该错误而绊脚石;
I'm trying to install Jupyter on Python 3.7 and seem to be stumbling over this error again and again;
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时遇到相同的错误.
I get the same error when attempting to install pywinpty via pip.
我已经安装了&重新安装了构建工具,但无济于事,并且提升了命令窗口的大小-有什么想法吗?
I have installed & reinstalled the build tools to no avail and the command window is elevated - any ideas?
更新:在3.7中尚未完全解决-但是在3.6中工作正常,我回滚了.
UPDATE: Not quite resolved in 3.7 - but it worked fine in 3.6, I've rolled back.
推荐答案
暂时,直到标准方式不适用于Python 3.7为止,您可以使用
Temporarily, until standard way does not work for Python 3.7, you can install pywinpty
manually by using the prebuilt wheel from Gohlke's collection and then install jupyter
with pip
.
要手动安装(从 cmd 或 Powershell ),请使用:
pip install drive:\path\to\the\wheel\pywinpty-0.5.4-cp37-cp37m-win_amd64.whl
To install manually (from cmd or Powershell) use:
pip install drive:\path\to\the\wheel\pywinpty-0.5.4-cp37-cp37m-win_amd64.whl
这篇关于安装Jupyter&时出错pywinpty(Python)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!