Title: Installing python modules to non-default interpreter [Ubuntu 10.04]
Tags: 10.04;python-2.7
Question: I had python 2.6 as default interpreter.
I installed 2.7 and I can use it via command line #&gt;python2.7 ...
Now I want to install some modules [PyMongo, MySqlDB etc.] using pip to this new version.
I can't use sudo apt-get, or pip at commandline since, they install to 2.6 [since, it is default]
Some help solving this conundrum will be appreciated.
Comment: To vote-to-closers: Ubuntu 10.04 server is **not** end-of-life. Desktop is. No software mentioned in the OP is non-LTS, so this is **on-topic**.

Comment: @VaidAbhishek How did you install Python 2.7. Where is it installed?


Here is another answer: You can get the source of the given python module and build it with python2.7:
$ python2.7 setup.py build
$ python2.7 setyp.py install --user --record files.lst
(You can then remove the thing with $ cat files.lst | parallel rm -rf {})

{'source': 'StackExchangeDataset', 'subset': 'askubuntu.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 2, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2013:00:07/21/13', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<10.04><python-2.7>', 'Title': 'Installing python modules to non-default interpreter [Ubuntu 10.04]', 'ViewCount': 280, 'id': 322665, 'user_AboutMe': '<pre><code>#include &lt;Co-Founder/Researcher @Frrole&gt;\nimport moocs\nimport computer.science.*\nrequire activelearning\n</code></pre>\n', 'user_AccountId': 320443.0, 'user_DisplayName': 'VaidAbhishek', 'user_Reputation': 331.0, 'user_Views': 41.0, 'user_id': 75460.0}}