php - Questions about reinstalling yum
漂亮男人
漂亮男人 2017-05-24 11:32:26
0
3
1113

After I modified the python2.6 that comes with the newly installed centos to 2.7
yum can’t be used. I searched many tutorials and they can’t be used.

Does anyone know how to do this?

123.png

The omnipotent segmentfault, please help me

漂亮男人
漂亮男人

reply all(3)
淡淡烟草味

Edit /usr/bin/yum, change python in the first line to python2.6

我想大声告诉你

You want to upgrade yum to python2.7, right? You only need to resolve the corresponding dependencies. However, the process is a bit cumbersome.

淡淡烟草味

Edit /usr/bin/yum and change the python in the first line to python2.6. The error message is

Traceback (most recent call last):
  File "/usr/bin/yum", line 28, in <module>
    import yummain
  File "/usr/share/yum-cli/yummain.py", line 34, in <module>
    import cli
  File "/usr/share/yum-cli/cli.py", line 34, in <module>
    import output
  File "/usr/share/yum-cli/output.py", line 450
    self.reported_error_msgs = {k: False for (k, v) in ERRORS_TO_KBASE_ARTICLES.iteritems()}
                                           ^

SyntaxError: invalid syntax

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template