parallel installion of Python 2.7 and 3.3 via Homebrew - pip3 fails
Question: I would like to make the jump and get acquainted with Python 3. I followed the
instructions found [here](https://github.com/mxcl/homebrew/wiki/Homebrew-and-
Python#python-2x-or-python-3x) with the installation working flawlessly.

I'm also able to use the provided virtualenv to create enviroments for Python
2 and Python 3 (Followed the instuctions
[here](http://stackoverflow.com/questions/12566064/virtualenv-with-
python2-and-python3-via-homebrew).). Unfortunalty pip3 fails when no
virtualenv is activated. I need to use it to install global modules for
python3.

This is the error message:

    
    
    ± |master ✓| → pip3
    Traceback (most recent call last):
      File "/usr/local/bin/pip3", line 5, in <module>
        from pkg_resources import load_entry_point
      File "/usr/local/lib/python2.7/site-packages/distribute-0.6.45-py2.7.egg/pkg_resources.py", line 51
        def _bypass_ensure_directory(name, mode=0777):
                                                   ^
    SyntaxError: invalid token
    

It looks like pip3 is trying to access distribute of python2. Is there any
workaround for this?


Answer: I was having the same problem as you were and I had

    
    
    export PYTHONPATH="/usr/local/lib/python2.7/site-packages:$PYTHONPATH"
    

in my ~/.bash_profile. Removing that line solved the problem for me. If you
have that or something like it in your ~/.bashrc or ~/.bash_profile, try
removing it.

