
levenshtein 错误:在 #%#$#%@%@%$#%$#%#%#$%@_e206a54e97690c++e50cc872dd70ee896 中安装
问题: 在 windows 本地计算机上,使用 whl 方式安装 python levenshtein 库成功了,克服了 vc++ 问题。但是,在上载到 linux 服务器后,安装遇到错误。
错误信息:
error: command errored out with exit status 1:command: /yuwei/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_97ezszt/python-levenshtein/setup.py'"'"'; file='"'"'/tmp/pip-install-_97ezszt/python-levenshtein/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-cv8p0664cwd: /tmp/pip-install-_97ezszt/python-levenshtein/
答案
该错误是由于缺少依赖项,即未安装 gcc(gnu 编译器集合)。
解决方法:
立即学习“Python免费学习笔记(深入)”;
使用 yum 安装 gcc:
yum install gcc
安装 gcc 后,重新安装 python levenshtein 库:
pip install python-Levenshtein
以上就是Linux 上安装 Python Levenshtein 库遇到错误:缺少 GCC 依赖项,如何解决?的详细内容,更多请关注创想鸟其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/1351869.html
微信扫一扫
支付宝扫一扫