在linux上(python3)安装fasttext时,遇到以下编译错误:
unable to execute 'x86_64-conda_cos6-linux-gnu-gcc': No such file or directory
error: command 'x86_64-conda_cos6-linux-gnu-gcc' failed with exit status 1
找不到编译器
解决办法:
conda install gxx_linux-64
之后就可以安装fasttext了。
在windows中可能会遇到类似的问题,找不到vc++,可以到pypi下载编译好的文件。
https://pypi.org/project/fasttext-win/#files
用pip安装下载的文件就可以了

本文解决在Linux和Windows环境下安装FastText遇到的编译错误问题。Linux下需使用conda安装gxx_linux-64,Windows则建议从PyPI下载预编译的FastText文件并用pip进行安装。
4156

被折叠的 条评论
为什么被折叠?



