Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two python-frameworks installed on my Mac OS X 10.6.8: one standard (/usr/bin/python) and now I installed 3.3.

I have already figured out that pip is installing things into site-packages but at the standard-python, now I need it to do this not for python 2.6.1, but for the new 3.3.

Can anybody help me with this?

share|improve this question
    
What is the path of the 3.1 version, i.e. how is its binary called and where is it on your system? – slhck Mar 29 '13 at 16:59
    
Library/Frameworks/Python.framework/Versions/3.3/ – noircc Mar 29 '13 at 17:07
    
binary is called python3 – noircc Mar 29 '13 at 17:08
    
Is pip in that 3.3's bin folder? If so, you could symlink it to /usr/bin/pip3, for example. – slhck Mar 29 '13 at 17:09
1  
See: How to install pip with Python 3? – slhck Mar 29 '13 at 17:22
up vote 1 down vote accepted

You can choose the site-package by invoking pip with the python where you want the modules in.

/usr/bin/python -V
-> Python 2.7.9

/usr/bin/python -m pip install this
-> /path/to/Python/2.7/site-packages/this

/usr/local/bin/python3 -V
-> Python 3.3

/usr/local/bin/python3 -m pip install this
-> /path/to/Python/3.3/site-packages/this        

If you want to know, which modules are inside your side-packages type

/path/to/python -m pip list
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.