Python 3 installing tweepy
<p>I have looked at all the forums, but nothing has worked so far. I have spent hours trying to install it so any help would be appreciated.
i have downloaded and unzipped tweepy, went on to the command prompt, typed "cd tweepy-master". This works, but when i type "python setup.py install" or "python setup.py build".</p>

<p>When i type "python setup.py install" the error says.</p>

<p>Traceback (most recent call last):
  File "setup.py", line 4, in 
    from setuptools import setup, find_packages
  File "C:\Users\Sam Terrett\Documents\Portable Python 3.2.5.1\App\lib\site-packages\setuptools__init__.py", line 2, in 
    from setuptools.extension import Extension, Library
  File "C:\Users\Sam Terrett\Documents\Portable Python 3.2.5.1\App\lib\site-packages\setuptools\extension.py", line 5, in 
    from setuptools.dist import _get_unpatched
  File "C:\Users\Sam Terrett\Documents\Portable Python 3.2.5.1\App\lib\site-packages\setuptools\dist.py", line 103
    except ValueError, e:
                     ^
SyntaxError: invalid syntax</p>

<p>When i type "python setup.py build"</p>

<p>Traceback (most recent call last):
  File "setup.py", line 4, in 
    from setuptools import setup, find_packages
  File "C:\Users\Sam Terrett\Documents\Portable Python 3.2.5.1\App\lib\site-packages\setuptools__init__.py", line 2, in 
    from setuptools.extension import Extension, Library
  File "C:\Users\Sam Terrett\Documents\Portable Python 3.2.5.1\App\lib\site-packages\setuptools\extension.py", line 5, in 
    from setuptools.dist import _get_unpatched
  File "C:\Users\Sam Terrett\Documents\Portable Python 3.2.5.1\App\lib\site-packages\setuptools\dist.py", line 103
    except ValueError, e:
                     ^
SyntaxError: invalid syntax</p>

<p>I saw alot of people saying to use pip, but i am struggling to install that to.
Thanks for the help</p>

<p>Have you installed Python using the Windows installer from <a href="https://www.python.org/downloads/windows/" rel="nofollow">python.org</a>?</p>

<p>Cause this comes with pip already bundled into it. (I can not check the exact location atm, as I am on a Mac, but according to this <a href="http://stackoverflow.com/questions/25328818/python-2-7-cannot-pip-on-windows-bash-pip-command-not-found">SO</a> post it should be located under <code>C:\PythonX.X\Scripts</code>, if you kept the default install location - otherwise it should be located in <code>&lt;path-to-python&gt;\Scripts</code> of course).</p>

<p>Otherwise pip can easily installed using <a href="https://bootstrap.pypa.io/get-pip.py" rel="nofollow">this</a> script. Simply call <code>python get-pip.py</code> in the script location and pip should be available afterwards (if not directly from commandline with <code>pip</code>, than at least by using <code>python -m pip</code>.)
Having pip finally available, you should be able to easily install tweepy calling <code>pip install tweepy</code> (or <code>python -m pip install tweepy</code> respectively).</p>

<p>For further information on pip and the other options to install it, check <a href="https://pip.pypa.io/en/stable/installing/" rel="nofollow">https://pip.pypa.io/en/stable/installing/</a>.</p>

<p>PS. If installing the package via pip does not work, this may be a compatibility issue. According to the <a href="https://github.com/tweepy/tweepy" rel="nofollow">tweepy github-page</a> python 3.2 is <strong>not</strong> amongst the supported python versions. So if your portable python really has an interpreter versioned 3.2.... (you can check the version of your interpreter running python from cmd, which should print something like <code>&gt; Python 3.X.X</code>), the package may not run properly at all (even if you can install it without a problem).</p>

<p>As the portable python apparently is no longer supported anyways, it may be worth trying a different solution. There are plenty suggested on the <a href="http://portablepython.com" rel="nofollow">portable python</a> website (I just know about Anaconda, but this works flawlessly). But if you only want to use python with tweepy and don't need anything like scipy or numpy, I'd suggest simply downloading the installer from the official website. As said, pip gets shipped with the standard installation and can be used to easily install most of the packages you will need. (Except for e.g. the abovementioned scipy/numpy, which require additional non-python libraries whose "manual" installation may not be worth the trouble and hence legitimates the use of a more comprehensive environment like Anaconda).</p>

python python-3.x tweepy