擅长:python、mysql、java
<p>有同样的问题。
对我来说,这是因为我的系统上安装了多个版本的python。
我必须做以下事情来修复它:
对于2.7版</p>
<pre><code>pip install tweepy
</code></pre>
<p>对于v3.0</p>
<pre><code>pip3 install tweepy
</code></pre>
<p>对于v3.5:</p>
<pre><code>pip3.5 install tweepy
</code></pre>