error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27

G:Softpythonword_cloud-master>python setup.py install

error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27

本机已经安装了VS2015,可以通过增加以下环境变量来解决:

再次安装,提示:

RuntimeError: Broken toolchain: cannot link a simple C program

通过修改D:IDEPython27Libdistutilsmsvc9compiler.py文件中的mfinfo=none进行解决

再次安装,提示:

问题参考:https://github.com/matplotlib/matplotlib/issues/3029/,问题未解决。

通过PIP进行Python包管理,首先下载安装pip,然后通过C:Usersyan>pip install wordcloud 进行安装。

原文地址:https://www.cnblogs.com/yshyee/p/6940347.html