Question Installing latest Python

Steven D'Aprano steve+comp.lang.python at pearwood.info
Tue Apr 28 18:43:00 EDT 2015


On Wed, 29 Apr 2015 05:26 am, Φώντας Λαδοπρακόπουλος wrote:

> Τη Τρίτη, 28 Απριλίου 2015 - 10:02:24 π.μ. UTC+3, ο χρήστης Φώντας
> Λαδοπρακόπουλος έγραψε:
>> First of all Steven thank youvery much for your detailed help.
>> 
>> Secondly prior of seeing your post i tried to folowe a guid and isntall
>> python 3.3.2 for CentOS 7.1 x64 using yum.


What command did you use to install with yum?


>> The python ould have been installed in 3.3.2 there as yous ay, but
>> instead look:
>> 
>> [root at secure ~]# /usr/bin/python3 -V
>> /usr/bin/python3: error while loading shared libraries:
>> libpython3.3m.so.1.0: cannot open shared object file: No such file or
>> directory
>> [root at secure ~]# /opt/rh/python33/root/usr/bin/python -V
>> /opt/rh/python33/root/usr/bin/python: error while loading shared
>> libraries: libpython3.3m.so.1.0: cannot open shared object file: No such
>> file or directory
>> [root at secure ~]#

Run these commands:

cd /tmp
python3 -c "import sys; print(sys.executable)"


What output do you get?


> Should i remove the package with yum and try the build from scracth method
> you posted otr is there is a way to reloves this error Steven?

No, do not remove the yum package yet. If you are satisfied with Python 3.3
the yum package is better than installing from source.


-- 
Steven




More information about the Python-list mailing list