yum update (python)
yum update
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 375, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 239, in main
(result, resultmsgs) = base.buildTransaction()
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1198, in buildTransaction
(rescode, restring) = self.resolveDeps()
File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 893, in resolveDeps
CheckDeps, checkinstalls, checkremoves, missing = self._resolveRequires(errors)
File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 1025, in _resolveRequires
(checkdep, missing, errormsgs) = self._processReq(po, dep)
File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 350, in _processReq
CheckDeps, missingdep = self._requiringFromTransaction(po, requirement, errormsgs)
File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 680, in _requiringFromTransaction
rel=pkg.rel)
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 5280, in update
availpkgs = self._compare_providers(availpkgs, requiringPo)
File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 1648, in _compare_providers
bestnum = max(pkgresults.values())
ValueError: max() arg is an empty sequence
ln -s /usr/bin/python2.7 /usr/bin/python
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 375, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 239, in main
(result, resultmsgs) = base.buildTransaction()
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1198, in buildTransaction
(rescode, restring) = self.resolveDeps()
File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 893, in resolveDeps
CheckDeps, checkinstalls, checkremoves, missing = self._resolveRequires(errors)
File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 1025, in _resolveRequires
(checkdep, missing, errormsgs) = self._processReq(po, dep)
File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 350, in _processReq
CheckDeps, missingdep = self._requiringFromTransaction(po, requirement, errormsgs)
File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 680, in _requiringFromTransaction
rel=pkg.rel)
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 5280, in update
availpkgs = self._compare_providers(availpkgs, requiringPo)
File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 1648, in _compare_providers
bestnum = max(pkgresults.values())
ValueError: max() arg is an empty sequence
---> 软件包 nvidia-container-runtime.x86_64.0.2.0.0-1.docker18.09.0 将被 升级
---> 软件包 nvidia-container-runtime.x86_64.0.3.3.0-1 将被 更新
---> 软件包 nvidia-container-runtime-hook.x86_64.0.1.4.0-2 将被 取代
---> 软件包 nvidia-container-toolkit.x86_64.0.1.2.1-2 将被 舍弃
---> 软件包 nvidia-detect.x86_64.0.410.78-1.el7.elrepo 将被 升级
---> 软件包 nvidia-detect.x86_64.0.440.64-1.el7.elrepo 将被 更新
---> 软件包 nvidia-docker2.noarch.0.2.0.3-1.docker18.09.0.ce 将被 升级
---> 软件包 nvidia-docker2.noarch.0.2.4.0-1 将被 更新
---> 软件包 nvidia-x11-drv-390xx.x86_64.0.390.87-1.el7_5.elrepo 将被 升级
--> 正在处理依赖关系 libGLdispatch.so.0()(64bit),它被软件包 1:libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.x86_64 需要
--> 正在处理依赖关系 libGLdispatch.so.0()(64bit),它被软件包 1:libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.x86_64 需要
--> 正在处理依赖关系 libGLdispatch.so.0()(64bit),它被软件包 1:libglvnd-gles-1.0.1-0.8.git5baa1e5.el7.x86_64 需要
--> 正在处理依赖关系 libnvidia-ml.so.1()(64bit),它被软件包 nvidia-x11-drv-390xx-390.138-1.el7_8.elrepo.x86_64 需要
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 375, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 239, in main
(result, resultmsgs) = base.buildTransaction()
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1198, in buildTransaction
(rescode, restring) = self.resolveDeps()
File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 893, in resolveDeps
CheckDeps, checkinstalls, checkremoves, missing = self._resolveRequires(errors)
File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 1025, in _resolveRequires
(checkdep, missing, errormsgs) = self._processReq(po, dep)
File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 350, in _processReq
CheckDeps, missingdep = self._requiringFromTransaction(po, requirement, errormsgs)
File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 680, in _requiringFromTransaction
rel=pkg.rel)
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 5280, in update
availpkgs = self._compare_providers(availpkgs, requiringPo)
File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 1648, in _compare_providers
bestnum = max(pkgresults.values())
ValueError: max() arg is an empty sequence
https://danieleriksson.net/2017/02/08/how-to-install-latest-python-on-centos/
Use “make altinstall” to prevent problems
It is critical that you use make altinstall
when you install your custom version of Python. If you use the normal make install
you will end up with two different versions of Python in the filesystem both named python
. This can lead to problems that are very hard to diagnose.
/usr/local/bin
# ls py*
pydoc3 pydoc3.8 python3.8 python3.8-config
/usr/local/bin/python3.8
Python 3.8.5 (default, Sep 4 2020, 19:48:39)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cytpes
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'cytpes'
>>> exit()
Python 3.8.5 (default, Sep 4 2020, 19:48:39)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cyptes
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'cyptes'
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.lzu.edu.cn
* elrepo: mirrors.tuna.tsinghua.edu.cn
* epel: my.mirrors.thegigabit.com
* extras: mirror.lzu.edu.cn
* updates: mirror.lzu.edu.cn
软件包 libffi-devel-3.0.13-19.el7.x86_64 已安装并且是最新版本
无须任何处理
REF
https://pure-defect.com/2019/06/patching-centos-7-and-overcoming-problems/