Yum upgrade python4/26/2023 Since yum is not working, you'll have to do most of it manually, by downloading the packages and reinstalling them using rpm directly.įor example, you can find a Python 2.7 RPM here (for CentOS 7 on x86_64): (See below as for why you should reinstall, and how you should manage newer versions of software in a distro such as CentOS.) Reinstalling older Python from RPM To fix this problem, you should reinstall Python 2.7 shipped with CentOS 7. Copied, almost to the word, from Solution #!/usr/bin/python >-Replace with ->#!/usr/bin/python2 Solution 1, enter the edit urlgrabber-ext-down Loading mirror speeds from cached hostfileįile "/usr/libexec/urlgrabber-ext-down", line 28 The error leading to this problem was:įound that yum no matter what software is installed, is an error, the type is as follows: base) ~]# yum install yum-fastestmirror There was a problem importing one of the Python modules Then you can modify the yum code python to python to implement.Ĭhange #!/usr/bin/python on the first line to #!/usr/bin/python2. Type "help", "copyright", "credits" or "license" for more information. If you can enter python2 by building python2 (base) rstudio]# python2 If this is what you see on yum install (base) rstudio]# yum install shiny-server-1.5.9.923-x86_64.rpmīecause yum supports python2 by default, when you upgrade to python3, you get an error.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |