Fedora: KEIN Modul mit dem Namen U / MIN bei der Verwendung von YUM

Habe ich entfernt, numpy und scipy Inhalt vom system-Python-2.6.4 zur Installation der verschiedenen Versionen für Sie, und jetzt brach ich YUM. Die Fehler, die ich erhalte ist folgende:

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named rpm

Please install a package which provides this module, or
verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.6.4 (r264:75706, Jun  4 2010, 18:20:31) 
    [GCC 4.4.4 20100503 (Red Hat 4.4.4-2)]

    If you cannot solve this problem yourself, please go to 
    the yum faq at:
      http://yum.baseurl.org/wiki/Faq

Auch wenn ich import-YUM aus dem inneren der python-Konsole bekomme ich folgende Fehlermeldung:

Traceback (most recent call last): 
File "<stdin>", line 1, in <module>   
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 23, in <module>

import rpm ImportError:

 No module named rpm

Python ist in Ordnung, und ich es geschafft, installieren Sie numpy aber ich will scipy installieren mit YUM und ich kann nicht. Auch wenn ich ausführen:

rpm --version

Bekomme ich: RPM-version 4.8.1.

Gibt es eine Möglichkeit, dieses Problem zu lösen? Ich wäre dankbar für irgendwelche Tipps oder Hinweise zur Lösung dieses Problems.

  • Nicht sicher, wie um Ihr problem zu beheben, aber sobald Sie es haben aussortiert, solltest du virtualenv und lassen Sie Ihre base Python-installation allein. Virtualenv macht es einfach zu erstellen, isolierte Python Umgebungen und das management davon, und Sie können spielen, um ohne Störung der Haupt-installation.
InformationsquelleAutor SC21 | 2014-10-10
Schreibe einen Kommentar