Solved

Unable to install latest Python3.3.0

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

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 29

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 29

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Installing Python 2.7.3 version on Windows operating system For installing Python first we need to download Python's latest version from URL" www.python.org " You can also get information on Python scripting language from the above mentioned we…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
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…

839 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