"no Module Named Yum" With Python 2.7
I need to use Python 2.7 for my project. But after installing Python, I can't use the module yum. I have this error : [root@nexus-chat2 .synapse]# yum There was a problem importin
Solution 1:
The yum
module is not a stock Python module. It would need to be built and installed explicitly for any version of Python you install on your system. With CentOS 6, the system Python is python 2.6 (and the yum
module will be available by default).
If you wanted to make the yum
module available to your Python 2.7 install, you would need to build yum
against your Python 2.7 install, which may be a non-trivial task.
The simplest solutions are (a) just use Python 2.6 or (b) upgrade to a more recent distribution.
Post a Comment for ""no Module Named Yum" With Python 2.7"