Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Unable to install latest Python3.3.0

Posted on 2013-01-20
5
Medium Priority
?
356 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1000 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

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. …
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
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 while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

722 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