# Installing Python 2 on SLES 15

**URL:** <https://forums.suse.com/t/installing-python-2-on-sles-15/40134>\
**Category:** SUSE Linux Enterprise Server\
**Created:** [February 28, 2023, 11:36am UTC](https://forums.suse.com/t/installing-python-2-on-sles-15/40134 "2023-02-28T11:36:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![c\_veronesi\_horta](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@c\_veronesi\_horta](https://forums.suse.com/u/c_veronesi_horta)\
**Post date:** [February 28, 2023, 11:36am UTC](https://forums.suse.com/t/installing-python-2-on-sles-15/40134/1 "2023-02-28T11:36:28Z")

</div>

Hello, I need to install Python 2 on a SLES 15sp4 box.  
I enabled Extension “SUSE Package Hub 15 SP4 x86\_64” and now all the python2 packages appear.  
The problem is that I see no “python2” nor “python2-base” package. Only specific packages.  
If I try to install one of them, for example “python2-ldap”, YaST show this error message:  
“nothing provides ‘libpython2.7.so.1.0()(64bit)’ needed by the to be installed python2-ldap-3.1.0-3.2.20.x86\_64”  
Any suggestion?  
Thank You & Kind Regards, Cristian

---

<div class="post-metadata">

**Author:** ![eirikur\_ingibergsson](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/eirikur_ingibergsson/32/9925_2.png) [@eirikur\_ingibergsson](https://forums.suse.com/u/eirikur_ingibergsson)\
**Post date:** [March 22, 2023, 12:29am UTC](https://forums.suse.com/t/installing-python-2-on-sles-15/40134/2 "2023-03-22T00:29:47Z")

</div>

According to this article : [Release Notes | SUSE Linux Enterprise Server 15&nbsp;SP4](https://www.suse.com/releasenotes/x86_64/SUSE-SLES/15-SP4/index.html)  
See chapter : 5.6.11 Python 2 has been removed  
There is no solution given for installing and running python 2 any longer.  
some other distros still support it for a limited time.

Python 2 sunset info :  
[Sunsetting Python 2 | Python.org](https://www.python.org/doc/sunset-python-2/#:~:text=The%20sunset%20date%20has%20now,when%20we%20released%20Python%202.7).
