Requires: libpython3.6m.so.1.0()(64bit)

发布时间 2024-01-02 09:47:20作者: DBA不仅仅是DBA
[root@pg1 Python-3.6.10]# yum install postgresql14-contrib
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package postgresql14-contrib.x86_64 0:14.10-1PGDG.rhel7 will be installed
--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: postgresql14-contrib-14.10-1PGDG.rhel7.x86_64
--> Finished Dependency Resolution
Error: Package: postgresql14-contrib-14.10-1PGDG.rhel7.x86_64 (pgdg14)
           Requires: libpython3.6m.so.1.0()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@pg1 Python-3.6.10]# python --version
Python 2.7.5
[root@pg1 Python-3.6.10]# python3 --version
bash: python3: command not found...
Similar command is: 'python'
[root@pg1 Python-3.6.10]# ln -s /usr/local/python3/bin/python3.6 /usr/bin/python3
[root@pg1 Python-3.6.10]#  /usr/bin/python3 --versin
Unknown option: --
usage: /usr/bin/python3 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
[root@pg1 Python-3.6.10]#  /usr/bin/python3  -V
Python 3.6.10
[root@pg1 Python-3.6.10]# ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
[root@pg1 Python-3.6.10]#  python3 --version
Python 3.6.10
[root@pg1 Python-3.6.10]#  pip3 --version
pip 18.1 from /usr/local/python3/lib/python3.6/site-packages/pip (python 3.6)
[root@pg1 Python-3.6.10]# find / |grep  libpython3.6m.so