擅长:python、mysql、java
<p>我来这里的聚会有点晚了,但我今天遇到了一个类似的问题,找到了答案</p>
<p>仅解决错误:<code>file_cache is unavailable when using oauth2client >= 4.0.0</code></p>
<p>解决方案:</p>
<p>将<code>discovery.build()</code>更改为具有字段<code>cache_discovery=False</code>
i、 e类</p>
<pre><code>discovery.build(api, version, http=http, cache_discovery=False)
</code></pre>
<p><strong>编辑</strong>:</p>
<p>正如@Chronial所说,这将禁用缓存。</p>
<p>找不到禁用缓存的解决方案<a href="https://github.com/googleapis/google-api-python-client/issues/325#issuecomment-274349841" rel="noreferrer">here</a></p>