Yum not found on Centos 7 “ No module named yum”
up vote
1
down vote
favorite
I recently installed CentOS 7 but have run into an issue with yum. I get the following error:
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
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.7.13 (default, Nov 15 2017, 23:42:24)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
What do I need to do to get yum working on my system?
centos python yum error-handling
add a comment |
up vote
1
down vote
favorite
I recently installed CentOS 7 but have run into an issue with yum. I get the following error:
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
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.7.13 (default, Nov 15 2017, 23:42:24)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
What do I need to do to get yum working on my system?
centos python yum error-handling
1
How did you install CentOS 7? This apparently is not a default install as CentOS does not offer Python v2.7.13. You should not be changing the system supplied version ofpython
but instead be usingvirtualenv
to use different Python versions. If you really have to use that version, then you have to find the matchingyum
libraries for that version which are probably in the same place you got your copy of Python from, but since you changed the system version of Python other things may be broken as well.
– GracefulRestart
Nov 27 at 2:10
Welcome, please see the explanation here access.redhat.com/solutions/21199.
– GAD3R
Nov 30 at 22:07
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I recently installed CentOS 7 but have run into an issue with yum. I get the following error:
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
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.7.13 (default, Nov 15 2017, 23:42:24)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
What do I need to do to get yum working on my system?
centos python yum error-handling
I recently installed CentOS 7 but have run into an issue with yum. I get the following error:
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
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.7.13 (default, Nov 15 2017, 23:42:24)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
What do I need to do to get yum working on my system?
centos python yum error-handling
centos python yum error-handling
edited Nov 30 at 22:06
GAD3R
25k1749106
25k1749106
asked Nov 26 at 22:32
Steven Scott
61
61
1
How did you install CentOS 7? This apparently is not a default install as CentOS does not offer Python v2.7.13. You should not be changing the system supplied version ofpython
but instead be usingvirtualenv
to use different Python versions. If you really have to use that version, then you have to find the matchingyum
libraries for that version which are probably in the same place you got your copy of Python from, but since you changed the system version of Python other things may be broken as well.
– GracefulRestart
Nov 27 at 2:10
Welcome, please see the explanation here access.redhat.com/solutions/21199.
– GAD3R
Nov 30 at 22:07
add a comment |
1
How did you install CentOS 7? This apparently is not a default install as CentOS does not offer Python v2.7.13. You should not be changing the system supplied version ofpython
but instead be usingvirtualenv
to use different Python versions. If you really have to use that version, then you have to find the matchingyum
libraries for that version which are probably in the same place you got your copy of Python from, but since you changed the system version of Python other things may be broken as well.
– GracefulRestart
Nov 27 at 2:10
Welcome, please see the explanation here access.redhat.com/solutions/21199.
– GAD3R
Nov 30 at 22:07
1
1
How did you install CentOS 7? This apparently is not a default install as CentOS does not offer Python v2.7.13. You should not be changing the system supplied version of
python
but instead be using virtualenv
to use different Python versions. If you really have to use that version, then you have to find the matching yum
libraries for that version which are probably in the same place you got your copy of Python from, but since you changed the system version of Python other things may be broken as well.– GracefulRestart
Nov 27 at 2:10
How did you install CentOS 7? This apparently is not a default install as CentOS does not offer Python v2.7.13. You should not be changing the system supplied version of
python
but instead be using virtualenv
to use different Python versions. If you really have to use that version, then you have to find the matching yum
libraries for that version which are probably in the same place you got your copy of Python from, but since you changed the system version of Python other things may be broken as well.– GracefulRestart
Nov 27 at 2:10
Welcome, please see the explanation here access.redhat.com/solutions/21199.
– GAD3R
Nov 30 at 22:07
Welcome, please see the explanation here access.redhat.com/solutions/21199.
– GAD3R
Nov 30 at 22:07
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f484317%2fyum-not-found-on-centos-7-no-module-named-yum%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
How did you install CentOS 7? This apparently is not a default install as CentOS does not offer Python v2.7.13. You should not be changing the system supplied version of
python
but instead be usingvirtualenv
to use different Python versions. If you really have to use that version, then you have to find the matchingyum
libraries for that version which are probably in the same place you got your copy of Python from, but since you changed the system version of Python other things may be broken as well.– GracefulRestart
Nov 27 at 2:10
Welcome, please see the explanation here access.redhat.com/solutions/21199.
– GAD3R
Nov 30 at 22:07