python - 安装 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 之前,您可以使用Gohlke 集合pywinpty
中的预构建轮子手动安装,然后使用.jupyter
pip
要手动安装(从cmd或Powershell),请使用:
pip install drive:\path\to\the\wheel\pywinpty-0.5.4-cp37-cp37m-win_amd64.whl
推荐阅读
- anylogic - ped.getGroup().size() 奇怪的行为
- reactjs - 如何在 webpack 中拆分没有 react.lazy 的组件?
- openrefine - 在 OpenRefine 中使用 GREL 提取文本
- python - JSON的单元测试以检查列数
- python - Jupyter Lab 启动时缺少令牌或密码
- c# - 如何托管本地文件以从 C# Windows 应用程序进行外部 http 访问
- c++ - 使用 openCV SurfFeatureDetector 后崩溃
- python-3.x - 在gdspy库python中将顶部单元格平展1级
- c# - OnPropertyChanged 事件不会切换按钮可见性
- vb.net - 我在使用 ForeColor 为 vb.net 中的文本框设置颜色时遇到问题