I am new to Linux and have just installed Ubuntu 12.10 on my laptop. I use Python and there are two versions of Python on Ubuntu, 2.7 and 3.2. And here comes my question. If I download a module and then setup it, which version will it be installed to? I don't know the command such as sudo apt-get install python-virtualenv
will install it to where, which version either. Is there a default version and then everything installed to it?
And when I want to use pip
to install some packages, still I don't know which version it will match and I don't know how to install the package to the version I want. I have searched google and stackoverflow and know it has something to do with the virtualenv
. And I read the virtualenv
documentation but I still don't understand it clearly.