Python 3.6.4
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
依赖微软服务,解决安装包依赖
a.手动下载安装whl文件
下载地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/
Mysqlclient, a fork of the MySQL-python interface for the MySQL database.
mysqlclient?1.4.2?cp27?cp27m?win32.whl
mysqlclient?1.4.2?cp27?cp27m?win_amd64.whl
mysqlclient?1.4.2?cp35?cp35m?win32.whl
mysqlclient?1.4.2?cp35?cp35m?win_amd64.whl
mysqlclient?1.4.2?cp36?cp36m?win32.whl
mysqlclient?1.4.2?cp36?cp36m?win_amd64.whl
mysqlclient?1.4.2?cp37?cp37m?win32.whl
mysqlclient?1.4.2?cp37?cp37m?win_amd64.whl
根据python版本下载对应软件包;例如 Python版本 3.6.4 、 电脑系统64位, 使用依赖包
mysqlclient?1.4.2?cp36?cp36m?win_amd64.whl
根据实际情况安装:
D:\软件\python-install>pip install mysqlclient-1.4.2-cp36-cp36m-win_amd64.whl
b.依赖包安装完成后,安装wordcloud
下载地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/
Wordcloud, a little word cloud generator.
wordcloud?1.5.0?cp27?cp27m?win32.whl
wordcloud?1.5.0?cp27?cp27m?win_amd64.whl
wordcloud?1.5.0?cp35?cp35m?win32.whl
wordcloud?1.5.0?cp35?cp35m?win_amd64.whl
wordcloud?1.5.0?cp36?cp36m?win32.whl
wordcloud?1.5.0?cp36?cp36m?win_amd64.whl
wordcloud?1.5.0?cp37?cp37m?win32.whl
wordcloud?1.5.0?cp37?cp37m?win_amd64.whl
根据python版本下载对应软件包;例如 Python版本 3.6.4 、 电脑系统64位, 使用依赖包
wordcloud?1.5.0?cp36?cp36m?win_amd64.whl
根据实际情况安装:
D:\软件\python-install>pip install wordcloud-1.5.0-cp36-cp36m-win_amd64.whl
c. 安装成功后,查看该库是否安装成功
D:\软件\python-install>pip list
Package Version
wordcloud 1.5.0
显示已安装成功。
原文地址:https://blog.51cto.com/adson10/2386247
时间: 2024-10-28 15:24:44