Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


python_alternative_upgrade_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
python_alternative_upgrade_notes [2022/05/03 12:12] juckinspython_alternative_upgrade_notes [2023/02/02 14:43] (current) juckins
Line 1: Line 1:
 ==== Python Alternative Upgrade Notes ==== ==== Python Alternative Upgrade Notes ====
 +
 +Python 3.11 on Rocky Linux 9:
 +
 +Follow [[https://www.centlinux.com/2022/06/how-to-install-python-310-on-rocky-linux.html|General Python 3.10 steps]]
 +
 +For python 3.11, use https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tar.xz
 +
 +If you get an error (at stage XXX) then check the permissions inside /opt/Python-3.11.1 directory and chown -R root:root then try again.
 +
 +After installed, set a sym link in /usr/local/bin/python3.11 to /usr/local/bin/python
 +
 +Look at using [[python_virtual_environments|Python Virtual Environments]] to use the new python installation.
 +
 +----
 +
  
 [[https://www.server-world.info/en/note?os=CentOS_Stream_8&p=python&f=5#:~:text=CentOS%20Stream%208%20%3A%20Install%20Python%203.9%20%3A%20Server%20World&text=Install%20Python%203.9.&text=It's%20possible%20to%20install%20Python%203.9%20from%20AppStream.|Server World]] [[https://www.server-world.info/en/note?os=CentOS_Stream_8&p=python&f=5#:~:text=CentOS%20Stream%208%20%3A%20Install%20Python%203.9%20%3A%20Server%20World&text=Install%20Python%203.9.&text=It's%20possible%20to%20install%20Python%203.9%20from%20AppStream.|Server World]]
 +
 +[[https://netslovers.com/post/installing-python-linux-centos-stream/|Netslovers]]
  
 [[https://tecadmin.net/install-python-3-9-on-centos-8/|TecAdmin]] [[https://tecadmin.net/install-python-3-9-on-centos-8/|TecAdmin]]
  
 [[https://computingforgeeks.com/install-latest-python-on-centos-linux/|Computing For Geeks]] [[https://computingforgeeks.com/install-latest-python-on-centos-linux/|Computing For Geeks]]
 +
 +Python 3.10.4 on test VM:
 +
 +[[https://linuxstans.com/how-to-install-python-centos/|Linux Stans]] with [[https://stackoverflow.com/questions/69539286/how-to-compile-python3-on-rhel-with-ssl-ssl-cannot-be-imported|openssl11 notes]]
 +
 +  yum -y install openssl11 openssl11-devel
 +  mkdir /usr/local/openssl11
 +  cd /usr/local/openssl11
 +  ln -s /usr/lib64/openssl11 lib
 +  ln -s /usr/include/openssl11 include
 +  ./configure --enable-optimizations --with-openssl=/usr/local/openssl11
 +  python3.10 -m pip list
python_alternative_upgrade_notes.1651594334.txt.gz · Last modified: 2022/05/03 12:12 by juckins