Re: Issues installing Python 2.7

2014-12-01 Thread billyfurlong
This actually worked!!  It's a bare machine with nothing (except the system) 
using python.
-- 
https://mail.python.org/mailman/listinfo/python-list


Invalid Syntax Installing pip - ez_setup.py

2014-12-01 Thread billyfurlong
Hi all,

Getting an error when I try to install ez_setup.py.  I thought that this was an 
issues with an incorrect version of python, so I upgraded to 2.7.5 
successfully.  But unfortunately I get the same error.


[root@yyboxname tmp]# wget https://bootstrap.pypa.io/ez_setup.py 
--no-check-certificate -O - | sudo python
--2014-12-01 11:30:17--  https://bootstrap.pypa.io/ez_setup.py
Resolving bootstrap.pypa.io... 23.235.39.175
Connecting to bootstrap.pypa.io|23.235.39.175|:443... connected.
WARNING: certificate common name `*.c.ssl.fastly.net' doesn't match requested 
host name `bootstrap.pypa.io'.
HTTP request sent, awaiting response... 200 OK
Length: 10476 (10K) [text/x-python]
Saving to: `STDOUT'

100%[=]
 10,476  --.-K/s   in 0s

2014-12-01 11:30:17 (31.4 MB/s) - `-' saved [10476/10476]

  File stdin, line 51
with archive_context(archive_filename):
   ^
SyntaxError: invalid syntax


Any help or direction would be greatly appreciated.

Billy,
-- 
https://mail.python.org/mailman/listinfo/python-list


Issues installing Python 2.7

2014-11-26 Thread billyfurlong
Hi all,

Not a python user but I'm trying to upgrade python so I can install pip which 
is required for one of the apps that I'm installing.

I've tried to install using the below instructions, but when I type python I 
still get the old 2.4.3 version.  Oh Red Hat 5.8 is where I'm installing on.


yum groupinstall development tools -y 
yum install readline-devel openssl-devel gmp-devel ncurses-devel gdbm-devel \
glib-devel expat-devel libGL-devel tk tix gcc-c++ \ 
libX11-devel glibc-devel bzip2 tar tcl-devel tk-devel pkgconfig \
tix-devel bzip2-devel sqlite-devel autoconf db4-devel libffi-devel \
valgrind-devel -y
mkdir tmp  
cd tmp  
wget http://python.org/ftp/python/2.7.5/Python-2.7.5.tgz  
tar xvfz Python-2.7.5.tgz  
cd Python-2.7.5

./configure --prefix=/opt/python2.7 --enable-shared

make

make altinstall

Add this to the bashrc
export PATH=$PATH:/opt/python2.7/bin/


Now the installation worked fine but shouldn't I see that it's using the 
correct version???

I also did try to run /opt/python2.7/bin/python2.7 and it give me this.

[root@wmy machine bin]# python2.7
python2.7: error while loading shared libraries: libpython2.7.so.1.0: cannot 
open shared object file: No such file or directory

Please help the newb.  He's frustrated.
-- 
https://mail.python.org/mailman/listinfo/python-list