当我尝试设置Google Sheets api时,我正在尝试运行quickstart.api,并且出现此错误
from googleapiclient.discovery import build
ModuleNotFoundError: No module named 'googleapiclient'
我尝试重新安装google client,但遇到了两个我无法解决的故障
Failed building wheel for google-api-python-client
和
Failed building wheel for httplib2
答案 0 :(得分:0)
似乎您缺少使用apt安装的python3.6-dev软件包:
sudo apt update
sudo apt install python3.6-dev
此后,请像以前一样使用pip重复安装。