外部环境:ubuntu16.04, 64bits, 全局环境python2.7html
在虚拟环境(python3.5)中执行 pip install wordcloud 时安装失败,报错:python
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 便可。linux
参考:ubuntu
http://www.cnblogs.com/canitang/p/7994184.htmlpython2.7