试图在centOs 7上安装lutris 它找不到python3-gobject和python3-PyYAML 但是我已经为每个我有=的python安装了这个
我尝试过: 百胜安装PyYAML python3-PyYAML pip安装,pip3安装等
但是它仍然抱怨这种依赖性 我想我需要以某种方式将其设置为可见,但不知道如何
请帮助=)
Error: Package: lutris-0.4.19-4.1.noarch (/lutris-0.4.19-4.1.noarch)
Requires: python3-gobject
Error: Package: lutris-0.4.19-4.1.noarch (/lutris-0.4.19-4.1.noarch)
Requires: python3-PyYAML
我尝试列出所有PyYAML,但仅在python2.7中看到
$ rpm -ql PyYAML
/usr/lib64/python2.7/site-packages/PyYAML-3.10-py2.7.egg-info
/usr/lib64/python2.7/site-packages/_yaml.so
/usr/lib64/python2.7/site-packages/yaml
/usr/lib64/python2.7/site-packages/yaml/__init__.py
/usr/lib64/python2.7/site-packages/yaml/__init__.pyc
/usr/lib64/python2.7/site-packages/yaml/__init__.pyo
/usr/lib64/python2.7/site-packages/yaml/composer.py
/usr/lib64/python2.7/site-packages/yaml/composer.pyc
/usr/lib64/python2.7/site-packages/yaml/composer.pyo
/usr/lib64/python2.7/site-packages/yaml/constructor.py
/usr/lib64/python2.7/site-packages/yaml/constructor.pyc
/usr/lib64/python2.7/site-packages/yaml/constructor.pyo
/usr/lib64/python2.7/site-packages/yaml/cyaml.py
/usr/lib64/python2.7/site-packages/yaml/cyaml.pyc
/usr/lib64/python2.7/site-packages/yaml/cyaml.pyo
/usr/lib64/python2.7/site-packages/yaml/dumper.py
/usr/lib64/python2.7/site-packages/yaml/dumper.pyc
/usr/lib64/python2.7/site-packages/yaml/dumper.pyo
/usr/lib64/python2.7/site-packages/yaml/emitter.py
/usr/lib64/python2.7/site-packages/yaml/emitter.pyc
/usr/lib64/python2.7/site-packages/yaml/emitter.pyo
/usr/lib64/python2.7/site-packages/yaml/error.py
/usr/lib64/python2.7/site-packages/yaml/error.pyc
/usr/lib64/python2.7/site-packages/yaml/error.pyo
/usr/lib64/python2.7/site-packages/yaml/events.py
/usr/lib64/python2.7/site-packages/yaml/events.pyc
/usr/lib64/python2.7/site-packages/yaml/events.pyo
/usr/lib64/python2.7/site-packages/yaml/loader.py
/usr/lib64/python2.7/site-packages/yaml/loader.pyc
/usr/lib64/python2.7/site-packages/yaml/loader.pyo
/usr/lib64/python2.7/site-packages/yaml/nodes.py
/usr/lib64/python2.7/site-packages/yaml/nodes.pyc
/usr/lib64/python2.7/site-packages/yaml/nodes.pyo
/usr/lib64/python2.7/site-packages/yaml/parser.py
/usr/lib64/python2.7/site-packages/yaml/parser.pyc
/usr/lib64/python2.7/site-packages/yaml/parser.pyo
/usr/lib64/python2.7/site-packages/yaml/reader.py
/usr/lib64/python2.7/site-packages/yaml/reader.pyc
/usr/lib64/python2.7/site-packages/yaml/reader.pyo
/usr/lib64/python2.7/site-packages/yaml/representer.py
/usr/lib64/python2.7/site-packages/yaml/representer.pyc
/usr/lib64/python2.7/site-packages/yaml/representer.pyo
/usr/lib64/python2.7/site-packages/yaml/resolver.py
/usr/lib64/python2.7/site-packages/yaml/resolver.pyc
/usr/lib64/python2.7/site-packages/yaml/resolver.pyo
/usr/lib64/python2.7/site-packages/yaml/scanner.py
/usr/lib64/python2.7/site-packages/yaml/scanner.pyc
/usr/lib64/python2.7/site-packages/yaml/scanner.pyo
/usr/lib64/python2.7/site-packages/yaml/serializer.py
/usr/lib64/python2.7/site-packages/yaml/serializer.pyc
/usr/lib64/python2.7/site-packages/yaml/serializer.pyo
/usr/lib64/python2.7/site-packages/yaml/tokens.py
/usr/lib64/python2.7/site-packages/yaml/tokens.pyc
/usr/lib64/python2.7/site-packages/yaml/tokens.pyo
/usr/share/doc/PyYAML-3.10
/usr/share/doc/PyYAML-3.10/CHANGES
/usr/share/doc/PyYAML-3.10/LICENSE
/usr/share/doc/PyYAML-3.10/PKG-INFO
/usr/share/doc/PyYAML-3.10/README
/usr/share/doc/PyYAML-3.10/examples
/usr/share/doc/PyYAML-3.10/examples/pygments-lexer
/usr/share/doc/PyYAML-3.10/examples/pygments-lexer/example.yaml
/usr/share/doc/PyYAML-3.10/examples/pygments-lexer/yaml.py
/usr/share/doc/PyYAML-3.10/examples/yaml-highlight
/usr/share/doc/PyYAML-3.10/examples/yaml-highlight/yaml_hl.cfg
/usr/share/doc/PyYAML-3.10/examples/yaml-highlight/yaml_hl.py
答案 0 :(得分:1)
我还在Cent OS 7.6上尝试过lutris
python 3.6-> sudo yum install python36
Python 3.6 PyYAML和Gobject实际上在7版本中不可用,它将在基于Fedora 28的CentOS 8.0中可用。但是它将在2019年1月底发布。请尝试从手动安装>
https://rpmfind.net/linux/rpm2html/search.php?query=python3-PyYAML https://rpmfind.net/linux/rpm2html/search.php?query=python3-gobject
确保您从fedora下载一个,而不是从suse或其他rpm下载。 python 3.6从官方仓库安装它。它应该在上一次我能够成功运行时起作用:)
答案 1 :(得分:0)
这很简单,您可以按照以下步骤尝试:
创建回购文件并添加以下行
sudo vi /etc/yum.repos.d/pyYAML.repo
[pyYAML]
name=python3.6-pyYAML
baseurl=https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/
enabled=1
gpgcheck=0
然后更新存储库并安装
sudo yum update
sudo yum install python36-PyYAML
如果您的计算机中没有python3.6,请安装
sudo yum install python-devel python36