annoy 安装

在安装annoy时可能遇到gcc版本过低和Python.h头文件缺失的问题。为解决gcc版本问题,可以参照链接升级gcc。若在安装过程中遇到Python.h错误,需要安装对应的Python开发库,但需确保安装的版本与系统中的Python版本匹配。如果版本不一致,常规安装可能无效。
摘要由CSDN通过智能技术生成

annoy 安装

QS1: gcc 版本太低, 需要进行升级
参考: http://www.vpser.net/manage/centos-6-upgrade-gcc.html
在这里插入图片描述

QS2:在安装的时候回遇到以下的情况,提示 “fatal error: Python.h: No such file or directory”

ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8nik2grm/annoy_8d4a0092f225406a9a9d27f03a9146b5/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8nik2grm/annoy_8d4a0092f225406a9a9d27f03a9146b5/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-record-__bt1mwd/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值