Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/310.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 无法解析apiclient.discovery。此模块可能缺少Intellisense_Python_Visual Studio 2015_Intellisense_Google Api Python Client_Ptvs - Fatal编程技术网

Python 无法解析apiclient.discovery。此模块可能缺少Intellisense

Python 无法解析apiclient.discovery。此模块可能缺少Intellisense,python,visual-studio-2015,intellisense,google-api-python-client,ptvs,Python,Visual Studio 2015,Intellisense,Google Api Python Client,Ptvs,我已经安装了Visual Studio 2015社区和Visual Studio的Python工具。但我无法让Intellisense识别我通过pip安装Google API python客户端安装的Google API 以下是我的导入内容: from apiclient.discovery import build from apiclient.http import MediaFileUpload 我的脚本运行,但没有自动完成功能。 有什么办法可以解决这个问题吗?我找到了答案。我只需将导入

我已经安装了Visual Studio 2015社区和Visual Studio的Python工具。但我无法让Intellisense识别我通过pip安装Google API python客户端安装的Google API

以下是我的导入内容:

from apiclient.discovery import build
from apiclient.http import MediaFileUpload
我的脚本运行,但没有自动完成功能。
有什么办法可以解决这个问题吗?

我找到了答案。我只需将导入语句更改为:

from googleapiclient.discovery import build
from googleapiclient.http import MediaFileUpload
现在自动完成工作