error: command 'gcc' failed with exit status 1

事因:在ubuntu中的conda环境中安装word2vec

报错:

解决:

sudo apt-get install gcc

pip install word2vec

N.B.  根据报错提示网上找解决方案时,基本都是 sudo apt-get install python3-dev. 但是在我这里都没用。

=======

以上。

猜你喜欢

转载自www.cnblogs.com/wxiaoli/p/8909763.html