词云:解决pip install wordcloud安装过程中报错“error: command 'x86_64-linux-gnu-gcc' failed with exit sta
Posted 焦距
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了词云:解决pip install wordcloud安装过程中报错“error: command 'x86_64-linux-gnu-gcc' failed with exit sta相关的知识,希望对你有一定的参考价值。
外部环境:ubuntu16.04, 64bits, 全局环境python2.7
在虚拟环境(python3.5)中执行 pip install wordcloud 时安装失败,报错:
error: command \'x86_64-linux-gnu-gcc\' failed with exit status 1 ---------------------------------------- Failed building wheel for wordcloud Running setup.py clean for wordcloud Failed to build wordcloud
解决方案:在外部环境执行 sudo apt-get install python3-dev ,再在虚拟环境中重新 pip install wordcloud 即可。
参考:
http://www.cnblogs.com/canitang/p/7994184.html
以上是关于词云:解决pip install wordcloud安装过程中报错“error: command 'x86_64-linux-gnu-gcc' failed with exit sta的主要内容,如果未能解决你的问题,请参考以下文章