How to install Python3.1 on Ubuntu/Linux
I am still rather new to the Linux OS and need some detailed advice on the installation of Python3.1 on my Ubuntu machine.
Python3.1 is not in the Ubuntu package repository yet.
sneekula
Nearly a Posting Maven
2,427 posts since Oct 2006
Reputation Points: 961
Solved Threads: 212
I am still rather new to the Linux OS and need some detailed advice on the installation of Python3.1 on my Ubuntu machine.
Python3.1 is not in the Ubuntu package repository yet.
If you perform an apt-cache search python | grep -E "31|3\.1" do you get any hits?
Alternately try an apt-cache search python3 . If nothing comes up for either query then you'll need to go the manual route.
jlm699
Veteran Poster
1,112 posts since Jul 2008
Reputation Points: 355
Solved Threads: 292
woooee
Nearly a Posting Maven
2,454 posts since Dec 2006
Reputation Points: 777
Solved Threads: 714
If you perform an apt-cache search python | grep -E "31|3\.1" do you get any hits?
Alternately try an apt-cache search python3 . If nothing comes up for either query then you'll need to go the manual route.
Thanks Jim, your first suggestion gives me:
dell@dell-laptop:~$ apt-cache search python | grep -E "31|3\.1"
python-xen-3.1 - python bindings for Xen, a Virtual Machine Monitor
dell@dell-laptop:~$
Your second code finds nothing, so it looks that Python3 it isn't there yet.
sneekula
Nearly a Posting Maven
2,427 posts since Oct 2006
Reputation Points: 961
Solved Threads: 212
Arrorn, thanks for your info.
I download Python-3.1.tar.bz2 from:
http://www.python.org/download/releases/3.1/
Extracted to the Desktop
On the Terminal I did a:
cd ~/Desktop/Python-3.1/
Then I followed the readme file for the installation on Linux
All of it worked great!
Now I need friendly advice on running idle.pyw in directory
/usr/local/lib/python3.1/idlelib with Python3.1
sneekula
Nearly a Posting Maven
2,427 posts since Oct 2006
Reputation Points: 961
Solved Threads: 212
I have a /user/bin/python2.5 link to that version's executable, also /user/bin/python links to there. There is no /user/bin/python3.1 link or a /user/bin/idle-python3.1. How do I create such a link?
sneekula
Nearly a Posting Maven
2,427 posts since Oct 2006
Reputation Points: 961
Solved Threads: 212
I have the Geany IDE originally installed under Python2.5 on my Ubuntu machine.
To run a script with Python3.1 with the Geany IDE you can set 'Build' --> 'Set Includes and Arguments' --> 'Execute' to python3.1 "%f"
For some odd reason my shebang line
#!/usr/local/bin/python3.1
doesn't seem to respond.
sneekula
Nearly a Posting Maven
2,427 posts since Oct 2006
Reputation Points: 961
Solved Threads: 212