title: Python - Import tweepy ImportError: No module named tweepy
body: <p>I installed pip install tweepy and it installed without errors.</p>
  <pre><code>Requirement already satisfied: tweepy in /Library/Python/2.7/site-packages
  Requirement already satisfied: requests&gt;=2.11.1 in /Library/Python/2.7/site-packages (from tweepy)
  Requirement already satisfied: PySocks&gt;=1.5.7 in /Library/Python/2.7/site-packages (from tweepy)
  Requirement already satisfied: six&gt;=1.10.0 in /Library/Python/2.7/site-packages (from tweepy)
  Requirement already satisfied: requests-oauthlib&gt;=0.7.0 in /Library/Python/2.7/site-packages (from tweepy)
  Requirement already satisfied: certifi&gt;=2017.4.17 in /Library/Python/2.7/site-packages (from requests&gt;=2.11.1-&gt;tweepy)
  Requirement already satisfied: chardet&lt;3.1.0,&gt;=3.0.2 in /Library/Python/2.7/site-packages (from requests&gt;=2.11.1-&gt;tweepy)
  Requirement already satisfied: idna&lt;2.7,&gt;=2.5 in /Library/Python/2.7/site-packages (from requests&gt;=2.11.1-&gt;tweepy)
  Requirement already satisfied: urllib3&lt;1.23,&gt;=1.21.1 in /Library/Python/2.7/site-packages (from requests&gt;=2.11.1-&gt;tweepy)
  Requirement already satisfied: oauthlib&gt;=0.6.2 in /Library/Python/2.7/site-packages (from requests-oauthlib&gt;=0.7.0-&gt;tweepy)
  </code></pre>
  <p>Here is my code:</p>
  <pre><code>import tweepy
  from tweepy import OAuthHandler
  
  consumer_key = 'consumer_key'
  consumer_secret = 'consumer_secret'
  
  access_token = 'access_token'
  access_token_secret = 'access_token_secret'
  
  auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
  auth.set_access_token(access_token, access_token_secret)
  
  api = tweepy.API(auth)
  
  public_tweepy.API('Yunus Hatipoglu')
  
  for tweet in public_tweets:
      print(tweet.text)
      analysis = TextBlob(tweet.text)
      print(analysis.sentiment)
  </code></pre>
  <p>As application, I use Pycharm and my operating system is OSX.</p>
  <p>python3 --version: Python 3.6.4</p>
  <p>When I run my code, I get the following error:</p>
  <blockquote>
  <p>import tweepy</p>
  <p>ImportError: No module named tweepy</p>
  </blockquote>