Unable to install tweepy in Python on Windows 7
<p>I have Python 3.5.2 installed on Windows 7 (64bit). Pip module is installed as well by default. I am new to installing Python packages. I am trying to install tweepy module, but keep running into the problem described below:</p>

<p>1) I tried to install tweepy navigating to C:...\Python35\Scripts in command line and running "pip install tweepy" from there, but it returns the error below:</p>

<p><a href="http://i.stack.imgur.com/DDxu0.png" rel="nofollow">Command line error - pip installation</a></p>

<p>2) Afterwards, I downloaded tweepy from GitHub, unzipped it and try to install it from command line by navigating to the tweepy folder and running "setup.py install" from there, but I received the error below:</p>

<p><a href="http://i.stack.imgur.com/XPt8W.png" rel="nofollow">Command line error - setup.py installation</a></p>

<p>The installation crashed when trying to download some "six" module. Does anyone know solution to this problem? I read through all the possible posts, but none addresses this issue.</p>

<p>After some testing I was finally able to successfully import tweety in Python interpreter as well as all its dependencies (that includes modules <em>six, requests, requests-oauthlib</em> and <em>oauthlib</em>).</p>

<p>The solution was the following:</p>

<p>I installed <em>six</em> using <code>pip install C:...\Python35\Scripts\file.whl</code>. The wheel file was downloaded from <a href="https://pypi.python.org/pypi/six/" rel="nofollow">https://pypi.python.org/pypi/six/</a>. The same solution worked for <em>requests</em> module, which was also not installed and required as a dependency by tweepy 3.5.0.</p>

<p>I installed <em>requests-oauthlib</em> using <code>setup.py install</code> from the folder where the unzipped tar.gz file was stored. I donwloaded the zipped tar.gz file from <a href="https://pypi.python.org/pypi/requests-oauthlib/0.7.0" rel="nofollow">https://pypi.python.org/pypi/requests-oauthlib/0.7.0</a>. The same solution worked for <em>oauthlib</em> module.</p>

<p>To conclude, it seems like the original tweepy installation did not installed some of its dependencies along with it. The solution was to download all the missing modules from <em>pypi</em> (<em>whl</em> or <em>tar.gz</em> file) and install them one by one. The methods are more closely described above.</p>

python windows pip tweepy six