Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5986

How do the two versions of Python work on Ubuntu?

$
0
0

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.


Viewing all articles
Browse latest Browse all 5986

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>