Solved

Unable to install latest Python3.3.0

Posted on 2013-01-20
5
335 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A set of related code is known to be a Module, it helps us to organize our code logically which is much easier for us to understand and use it. Module is an object with arbitrarily named attributes which can be used in binding and referencing. …
Here I am using Python IDLE(GUI) to write a simple program and save it, so that we can just execute it in future. Because when we write any program and exit from Python then program that we have written will be lost. So for not losing our program we…
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 …
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…

746 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

13 Experts available now in Live!

Get 1:1 Help Now