Solved

Unable to install latest Python3.3.0

Posted on 2013-01-20
5
336 Views
Last Modified: 2013-06-22
I have observed that on my redhat linux python 2.6 is installed.

Now i have downloaded and extracted Python-3.3.0 and copied to /usr/bin/
I have changed my current working directory to /usr/bin/Python-3.3.0 and when i run the following command
python setup.py install

I have received error message as shown in the attachment. Please look at it and suggest me the solution.
Python-installation-problem.JPG
0
Comment
  • 3
  • 2
5 Comments
 
LVL 28

Expert Comment

by:pepr
ID: 38798299
The setup.py is belongs to some package. What package do you try to install? Is it the package for Python 3? Are you sure you launch the Python 3? (You can try python --version, or you can just type python without arguments and look a the first line.)
0
 
LVL 9

Author Comment

by:Vijaya Reddy Pinnapa Reddy
ID: 38798325
When i run python, it is opening python2.6..5. But i want to install the latest one i.e. Python3.3.0.

Please read my question one more time
0
 
LVL 28

Expert Comment

by:pepr
ID: 38798417
I think I understand your problem. But you are combining two things: installing Python 3.3, and running the setup.py that belongs to some package.

Where did you downloaded Python-3.3.0 from and in what form? Or you have to compile Python from sources, or you (preferably) use the RPM package (i.e. precompiled binary) to install Python 3.3.

Then run python --version to check whether you are able to launch Python 3.3.

Having both Python 2.x and Python 3.x, you should name one of them differently (like python2 or python3).

A side note: In Unix-based systems, it is usual not to have '.' (current directory) in path. When launching python from current directory, you should use './python' to be sure that you are launching the wanted one. Otherwise, the Python 2.x found via PATH will be launched.
0
 
LVL 9

Author Comment

by:Vijaya Reddy Pinnapa Reddy
ID: 38798559
I have downloaded the Python-3.3.0.tgz to my desktop in Downloads directory. Then extarcted to Python-3.3.0. Then i have copied Python-3.3.0 to usr/bin.

Now i changed current directory to usr/bin/Python-3.3.0. Then, i ran the following command, after running the command the same error i have received as shown in the attachment
python setup.py install


Or

Please suggest me how to install Python-3.3.0 on redhat linux.?(Already python 2.6.5 is working). I want to upgrade from 2.6.5 to 3.3.0.
0
 
LVL 28

Accepted Solution

by:
pepr earned 500 total points
ID: 38799117
The Python-3.3.0.tgz contains source files. You need to compile them or get some precompiled binaries. The python setup.py install is completely unrelated to the Python 3.3 installation.

I have no experience with Red Hat Linux. You should ask for help in some of the RH forums.

There is probably ActivePython (paid) available for Red Hat. I do not know whether there are any RPM's freely available. See http://rpmfind.net/linux/rpm2html/search.php?query=python3&submit=Search+...&system=&arch= but no Red Hat found.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Perl Frameworks 1 80
How To Loop - Python 19 79
linux crontab output 3 67
POWERSHELL: do / until, should continue even when there is an error 4 53
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now