yum 运行时提示There was a problem importing one of the Python modules required to run yum. The error lead
2014-10-28 16:53
1736 查看
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.3 (default, Sep 25 2012, 13:28:17)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
查看python版本
python -V
Python 2.7.3
whereis python
python: /usr/bin/python /usr/bin/python2.4 /usr/lib/python2.4 /usr/include/python2.4 /usr/local/python2.7 /usr/share/man/man1/python.1.gz
修改yum的python版本
which yum
vi /usr/bin/yum
修改第一句内容为以下
/usr/bin/python2.4
#!/usr/bin/python2.4
再次运行就正常了
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.3 (default, Sep 25 2012, 13:28:17)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
查看python版本
python -V
Python 2.7.3
whereis python
python: /usr/bin/python /usr/bin/python2.4 /usr/lib/python2.4 /usr/include/python2.4 /usr/local/python2.7 /usr/share/man/man1/python.1.gz
修改yum的python版本
which yum
vi /usr/bin/yum
修改第一句内容为以下
/usr/bin/python2.4
#!/usr/bin/python2.4
再次运行就正常了
相关文章推荐
- There was a problem importing one of the Python modules required to run yum
- 32位centos运行yum报错:There was a problem importing one of the Python modules
- 解决yum升级的问题“There was a problem importing one of the Python modules”
- 解决yum升级的问题“There was a problem importing one of the Python modules”
- 解决yum升级的问题“There was a problem importing one of the Python modules”
- Excel 错误提示“There was a problem sending the command to the program”
- There was a problem getting an AppDomain to run the transformation from the host. The process cannot
- 运行rails server 出现There was an error while trying to load the gem 'uglifier'. (Bundler::GemRequireErr
- virtualenvwrapper.sh: There was a problem running the initialization hooks. If Python could not import the module virtualenvwrapper.hook_loader, check
- .Net Framework Initialization Error – Unable to find a version of the runtime to run this applicatio
- chrome javascript Uncaught SecurityError: An attempt was made to break through the security policy of the user agent
- 在ibatis的提示出错:“The file cannot be validated as there was a connection problem. ”
- .Net Framework Initialization Error – Unable to find a version of the runtime to run this applicati
- 解决VS2012 Express的"There was a problem sending the command to the program"问题
- Python 安装Twisted 提示python version 2.7 required,which was not found in the registry
- [乐意黎原创] excel 2007第一次打开时显示there was a problem sending command to the program,再打开一次就能打开了。
- An error occurred during the parsing of a resource required to service this request
- XP下运行VS2010生成程序报错:unable to find a version of the runtime to run this application
- Excel - There was a problem sending the command to the program
- .Net Framework Initialization Error – Unable to find a version of the runtime to run