![]() ![]() If you want to install Python2.7, you need to find the Linux version number. Rpm -qa|grep yum|xargs rpm -ev -allmatches -nodepsĬopy the code Download, install and restore 3.1. Unusable delete first, in case dependency error # Delete the yum! Rpm -qa|grep python|xargs rpm -ev -allmatches -nodeps Check that Python2.7 is uninstalled clean # Uninstall python Check whether the deletion is complete 2.1. ![]() For different versions of the machine, remember to replace the machine version number. This process also applies to the problem where the Python version of YUM is unavailable. ![]() If there are problems, I'll read the prompts and get to work. The idea is that without Python2.7, I need to reinstall the Python2.7 package that the Linux server relies on and see if there are any other problems. Simply put, the problem is to return to the original state. Not only was YUM unavailable due to Python2.7 being uninstalled, but the machine in my Ambari cluster crashed and the Web interface went red as I tried to pass the command rm -rf /* See the problem hint just know is oneself dug a pit for oneself, the mood once gloomy arrive even dinner all don't want to eat, finally? I finally went to dinner, hahaha. ![]() ④ I started using yum to install Python3.8 dependencies. ③ Then I downloaded the Python3.8 package. ②Python3 and Python2 are not backward compatible, so I uninstalled the native version of Python2.7 and cleaned it up. ① Because you need to deploy the crawler first, then install Python3. by Jayesh Lalla Category:įrom the title, you can see that I'm paranoid, but a brief description of how I hurt myself. ![]()
0 Comments
Leave a Reply. |