Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 367
  • Last Modified:

Unable to install latest Python3.3.0

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
Vijaya Reddy Pinnapa Reddy
Asked:
Vijaya Reddy Pinnapa Reddy
  • 3
  • 2
1 Solution
 
peprCommented:
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
 
Vijaya Reddy Pinnapa ReddyAuthor Commented:
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
 
peprCommented:
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
 
Vijaya Reddy Pinnapa ReddyAuthor Commented:
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
 
peprCommented:
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now