安装Jupyter和pywinpty(Python)时出错
问题内容:
我正在尝试在 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不起作用为止,您可以pywinpty
使用Gohlke集合中的预装滚轮手动进行安装jupyter
,然后使用进行安装pip
。
要手动安装(从 cmd 或 Powershell ),请使用: pip install drive:\path\to\the\wheel\pywinpty-0.5.4-cp37-cp37m-win_amd64.whl