Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I run linux mint

I downloaded python 3.3.1 and ran:

./configure
make
make test
sudo make altinstall

However python3.3 did not show up in /usr/bin, but there is a python3.3 folder in /usr/local/lib alongside python2.7 and python3.2 folders.

There is another python3.3 folder in /usr/lib, but it only contains one file which is: /usr/lib/python3.3/lib-dynload/_gdbm.cpython-33m.so.

How can I install it so that I can have /usr/bin/python3.3?

share|improve this question

closed as off-topic by Mitch Feb 27 at 10:39

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

    
can you do ls -ltr /usr/local/bin/python3.3 –  thefourtheye Apr 30 '13 at 15:28
    
It returns the following: -rwxr-xr-x 2 root root 10305765 Apr 30 17:33 /usr/local/bin/python3.3 –  urbanslug Apr 30 '13 at 15:34
add comment

3 Answers 3

The Python executable has been installed in /usr/local/bin. Everything belonging to Python 3.3 has been installed under /usr/local.

That's because /usr/local is the default prefix for locally installed packages. If you would like to install it into /usr, just pass a different prefix to the configure script:

./configure --prefix=/usr

However, I must say that Python 3.3 is in the Ubuntu archives since Quantal. You should prefer using the official Ubuntu package, unless you need to customize things. To install it, use the following commands:

sudo apt-get update
sudo apt-get install python3.3

Lastly, whether you want to use the official package or not, it must be noted that /usr/local/bin is in the default PATH, so there should be no need to install the executable into /usr/bin. I would discourage doing so, as it may be a source of conflicts in future upgrades.

share|improve this answer
    
what exactly does this mean? "...Python 3.3 is in the Ubuntu archives..." I want python 3.3 so that I can use pygame. –  urbanslug Apr 30 '13 at 15:37
    
@urbanslug: I have added the information that explain how to install Python from the official archives. –  Andrea Corbellini Apr 30 '13 at 15:43
    
@urbanslug: I noticed that pygame is packaged for Ubuntu too, you do not need to install it manually. –  Andrea Corbellini Apr 30 '13 at 15:45
add comment

You can follow @Andrea's answer. Or

sudo ln -s /usr/bin/python3.3 /usr/local/bin/python3.3

Would create a symbolic link

share|improve this answer
add comment

use the command:

which python

This will tell you where python is.

the command

python

will tell you version

share|improve this answer
add comment

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