我正试图通过pip安装pycrypto。安装失败的有:
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-zWtfwz/pycrypto/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-OrjLDy-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-zWtfwz/pycrypto/我发现其他帖子说我需要通过yum下载pycrypto,但是引用的包似乎已经不存在了--至少这个名字不存在。
发布于 2021-06-22 16:40:19
yum install gcc*那就跑
pip install pycrypto发布于 2017-11-30 18:01:17
我找到了我的问题的答案,对于任何人谁可能在未来发现这一点。
再往前看,我注意到:
配置:错误:在$PATH中找不到可接受的C编译器
每https://www.thelinuxfaq.com/74-error-no-acceptable-c-compiler-found-in-path-linux
我执行了:
yum groupinstall "Development tools"然后
pip install pycrypto果然起作用了。
使用缓存的pycrypto-2.6.1.tar.gz构建车轮收集所收集的软件包: pycrypto运行setup.py bdist_wheel for pycrypto .完成存储在目录中: /root/.cache/pip/wheels/80/1f/94/f76e9746864f198eb0e304aeec319159fa41b082f61281ffce成功构建了pycrypto安装收集的软件包: pycrypto 成功安装了pycrypto-2.6.1
https://stackoverflow.com/questions/47563175
复制相似问题