On Fri, Nov 17, 2023 at 9:30 PM Ranjan Maitra via users <users@xxxxxxxxxxxxxxxxxxxxxxx> wrote: > > So, it turns out that there is no tensorflow for Python 3.12, which is > what is shipped out with F39. > > I tried to downgrade my python using > > sudo dnf downgrade python --releasever=38 > > that downgrades a huge bunch of things, including important components > like rpm. > > However, dnf install/update pretty much anything gives a segmentation > fault after that. > > $ sudo dnf update --exclude=python\* > Last metadata expiration check: 2:37:29 ago on Fri 17 Nov 2023 05:50:32 PM CST. > Segmentation fault > > Staying within the dnf system, is there a better way to keep the older > version of python around? The Python folks recommend building from sources, but using a different $prefix, and installing with `make altinstall`. See <https://docs.python.org/3.9/using/unix.html#building-python>. Debian has a nice explanation of how to run different versions of Python. It follows Python's recommendations. Once you download the version you are interested in, upack it, run `./configure --prefix=/opt && make && make test`. Follow it with a `make altinstall`. Also see <https://wiki.debian.org/Python>. If you try Python's method, do not install into /usr/local. Pick a location like /opt/python3.11. Unexpected versions of software in /usr/local can cause quite a bit of pain since /usr/local is often on-path. Jeff -- _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue