微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

GCC错误:/ usr / lib / rpm / redhat / redhat-hardened-cc1:没有这样的文件或目录

[axaysd@localhost ~]$ sudo pip install lightfm [sudo] password for axaysd: Collecting lightfm Using cached lightfm-1.12.tar.gz Requirement already satisfied: numpy in /usr/lib64/python2.7/site-packages (from lightfm) Requirement already satisfied: scipy>=0.17.0 in /usr/lib64/python2.7/site-packages (from lightfm) Requirement already satisfied: requests in /usr/lib/python2.7/site-packages (from lightfm) Installing collected packages: lightfm Running setup.py install for lightfm ... error Complete output from command /usr/bin/python -u -c "import setuptools,tokenize;__file__='/tmp/pip-build-08iD5u/lightfm/setup.py';f=getattr(tokenize,'open',open)(__file__);code=f.read().replace('rn','n');f.close();exec(compile(code,__file__,'exec'))" install --record /tmp/pip-T0wh6x-record/install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/lightfm copying lightfm/_lightfm_fast.py -> build/lib.linux-x86_64-2.7/lightfm copying lightfm/evaluation.py -> build/lib.linux-x86_64-2.7/lightfm copying lightfm/__init__.py -> build/lib.linux-x86_64-2.7/lightfm copying lightfm/lightfm.py -> build/lib.linux-x86_64-2.7/lightfm creating build/lib.linux-x86_64-2.7/lightfm/datasets copying lightfm/datasets/movielens.py -> build/lib.linux-x86_64-2.7/lightfm/datasets copying lightfm/datasets/stackexchange.py -> build/lib.linux-x86_64-2.7/lightfm/datasets copying lightfm/datasets/_common.py -> build/lib.linux-x86_64-2.7/lightfm/datasets copying lightfm/datasets/__init__.py -> build/lib.linux-x86_64-2.7/lightfm/datasets copying lightfm/_lightfm_fast_no_openmp.c -> build/lib.linux-x86_64-2.7/lightfm copying lightfm/_lightfm_fast_openmp.c -> build/lib.linux-x86_64-2.7/lightfm running build_ext building 'lightfm._lightfm_fast_openmp' extension creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/lightfm gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c lightfm/_lightfm_fast_openmp.c -o build/temp.linux-x86_64- **gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory error: command 'gcc' Failed with exit status 1 ---------------------------------------- Command "/usr/bin/python -u -c "import setuptools,'exec'))" install --record /tmp/pip-T0wh6x-record/install-record.txt --single-version-externally-managed --compile" Failed with error code 1 in /tmp/pip-build-08iD5u/lightfm/**

pip3输出新行而不是安装

如何在pypi上为多个版本的Python分发预编译的Windows扩展模块?

点:无法获取pypi的URL并确认SSL证书

在Windows上升级pip.exe时,“访问被拒绝”

当试图用pip安装pandas时,权限被拒绝

在Fedora 24上,这为我工作:

sudo dnf install redhat-rpm-config

来源: https : //bugs.launchpad.net/openstack-gate/+bug/1424582

' dnf提供文件 '(或'yum提供文件名 ')通常可以告诉你什么包提供被投诉的文件

root@nuc:~/ > dnf provides '/usr/lib/rpm/redhat/redhat-hardened-cc1' Last Metadata expiration check: 0:24:28 ago on Sat 28 Oct 2017 12:53:33 PM EDT. redhat-rpm-config-63-1.fc26.noarch : Red Hat specific rpm configuration files Repo : @System redhat-rpm-config-63-1.fc26.noarch : Red Hat specific rpm configuration files Repo : fedora

上面的'redhat-rpm-config-63-1.fc26.noarch'的响应证实Trần的答案是正确的。 “提供”命令会比你想像的更频繁地保存你的屁股!

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐