听说win安装fasttext麻烦,linux上安装方便,结果我win10直接pip install 安装上去了,ubantu上pip install fasttext反而报错:error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
还是依赖问题:直接复制下面代码安装缺少的依赖,然后再pip install fasttext即可安装
apt-get install python3 python-dev python3-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev python-pip
来源:oschina
链接:https://my.oschina.net/u/3726752/blog/1843950