安裝fasttext報錯:command 'x86_64-linux-gnu-gcc

據說win安裝fasttext麻煩,linux上安裝方便,結果我win10直接pip install 安裝上去了,ubantu上pip install fasttext反而報錯:error: command 'x86_64-linux-gnu-gcc' failed with exit status 1python

仍是依賴問題:直接複製下面代碼安裝缺乏的依賴,而後再pip install fasttext便可安裝linux

apt-get install python3 python-dev python3-dev      build-essential libssl-dev libffi-dev      libxml2-dev libxslt1-dev zlib1g-dev      python-pipui

相關文章
相關標籤/搜索