无法安装“;Google客户端库:Python.h:没有这样的文件或目录

无法安装“;Google客户端库:Python.h:没有这样的文件或目录,python,google-api,google-drive-api,google-api-python-client,Python,Google Api,Google Drive Api,Google Api Python Client,我需要写一个Python脚本来上传大文本文件到谷歌硬盘 我无法安装“Google客户端库”(根据Google Drive API>V3的步骤2): 上面说: pip3 install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib 我得到了以下错误: multidict/_multidict.c:1:10: fatal error: Python.h: No such file or di

我需要写一个Python脚本来上传大文本文件到谷歌硬盘

我无法安装“Google客户端库”(根据Google Drive API>V3的步骤2):

上面说:

pip3 install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
我得到了以下错误:

multidict/_multidict.c:1:10: fatal error: Python.h: No such file or directory
     #include "Python.h"
              ^~~~~~~~~~
    compilation terminated.
    error: command 'i686-linux-gnu-gcc' failed with exit status 1
已搜索解决方案,但找不到匹配项

注意:我还安装了:

pip3 install wheel
apt-get install python3.8-dev
这没有帮助。

的意思是应该使用pip而不是pip3,并且说明最低版本是2.6,并且pip与pip3不同,除非您在环境变量中定义了它。
pip3 install wheel
apt-get install python3.8-dev