首页 > 解决方案 > 在 mac 上安装模块 sendkeys 时出现问题

问题描述

我是新手 python 和 selenium 用户。我试图通过 pycharm ce 和终端安装 sendkeys。在这两种情况下都有错误。

我想这将是相关的部分

 _sendkeys.c:14:10: fatal error: 'windows.h' file not found
    #include "windows.h"
             ^~~~~~~~~~~
    1 error generated.
    error: command 'gcc' failed with exit status 1

尝试使用和不使用 sudo。pip、pip3 和 pip3.8 安装并没有区别。

标签: pythonselenium

解决方案


推荐阅读