我是靠谱客的博主 含糊画笔,最近开发中收集的这篇文章主要介绍wordcloud安装,又给我来安装失败,嚓,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

1. pip install wordcloud安装失败了

pip install wordcloud 明了之后,失败了,干的漂亮~

D:Python38-32>pip install wordcloud
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, timeout(’_ssl.c:1091: The handshake operation timed out’))’: /simple/wordcloud/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, timeout(’_ssl.c:1091: The handshake operation timed out’))’: /simple/wordcloud/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, timeout(’_ssl.c:1091: The handshake operation timed out’))’: /simple/wordcloud/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, timeout(’_ssl.c:1091: The handshake operation timed out’))’: /simple/wordcloud/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, timeout(’_ssl.c:1091: The handshake operation timed out’))’: /simple/wordcloud/
ERROR: Could not find a version that satisfies the requirement wordcloud
ERROR: No matching distribution found for wordcloud

2.网上度娘之后

直接去https://www.lfd.uci.edu/~gohlke/pythonlibs/#wordcloud下载相应的包安装就可以了

  • 先安装wrapt‑1.10.11‑cp36‑cp36m‑win_amd64.whl

  • 再安装wordcloud‑1.3.2‑cp36‑cp36m‑win_amd64.whl

D:Python38-32>pip install wrapt-1.12.1-cp38-cp38-win32.whl
Processing d:python38-32wrapt-1.12.1-cp38-cp38-win32.whl
Installing collected packages: wrapt
Successfully installed wrapt-1.12.1

在这里插入图片描述

D:Python38-32>pip install wordcloud-1.8.1-cp38-cp38-win32.whl
Processing d:python38-32wordcloud-1.8.1-cp38-cp38-win32.whl
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, timeout(’_ssl.c:1091: The handshake operation timed out’))’: /simple/pillow/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, timeout(’_ssl.c:1091: The handshake operation timed out’))’: /simple/pillow/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, timeout(’_ssl.c:1091: The handshake operation timed out’))’: /simple/pillow/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, timeout(’_ssl.c:1091: The handshake operation timed out’))’: /simple/pillow/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, timeout(’_ssl.c:1091: The handshake operation timed out’))’: /simple/pillow/
ERROR: Could not find a version that satisfies the requirement pillow (from wordcloud)
ERROR: No matching distribution found for pillow

在这里插入图片描述

oh。。。fk,问候了一下各位某位女性同胞。

3. 终极试探

采用的方法见pandas的安装

使用命令:

pip3 install wordcloud -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

效果:

D:Python38-32>pip3 install wordcloud -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
Looking in indexes: http://pypi.douban.com/simple/
Collecting wordcloud
Downloading http://pypi.doubanio.com/packages/93/05/1f17541135c5bb75c1415d4bda1ab80a80b5b1e7ab673d73f74f230d15db/wordcloud-1.8.1-cp38-cp38-win32.whl (145 kB)
|████████████████████████████████| 145 kB 6.4 MB/s
Requirement already satisfied: numpy>=1.6.1 in d:python38-32libsite-packages (from wordcloud) (1.19.4)
Collecting matplotlib
Downloading http://pypi.doubanio.com/packages/cc/10/0f6301ef86ec6d960e3292854494dfe81b794c19383495aa90003939a7ad/matplotlib-3.3.3-cp38-cp38-win32.whl (8.3 MB)
|████████████████████████████████| 8.3 MB …
Requirement already satisfied: numpy>=1.6.1 in d:python38-32libsite-packages (from wordcloud) (1.19.4)
Requirement already satisfied: python-dateutil>=2.1 in d:python38-32libsite-packages (from matplotlib->wordcloud) (2.8.1)
Collecting cycler>=0.10
Downloading http://pypi.doubanio.com/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Requirement already satisfied: six in d:python38-32libsite-packages (from cycler>=0.10->matplotlib->wordcloud) (1.15.0)
Collecting kiwisolver>=1.0.1
Downloading http://pypi.doubanio.com/packages/57/f6/64bde0adeb2e406613818f41f9ad3d0ef694fb8772f8b37122ee9e6b31b1/kiwisolver-1.3.1-cp38-cp38-win32.whl (42 kB)
|████████████████████████████████| 42 kB …
Collecting pillow
Downloading http://pypi.doubanio.com/packages/f4/8c/45f28efc015ec0040bb6cbde9e763140818388938dd0d2f9e6304322f11f/Pillow-8.0.1-cp38-cp38-win32.whl (1.9 MB)
|████████████████████████████████| 1.9 MB …
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3
Downloading http://pypi.doubanio.com/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
|████████████████████████████████| 67 kB …
Requirement already satisfied: six in d:python38-32libsite-packages (from cycler>=0.10->matplotlib->wordcloud) (1.15.0)
Installing collected packages: pyparsing, pillow, kiwisolver, cycler, matplotlib, wordcloud
Successfully installed cycler-0.10.0 kiwisolver-1.3.1 matplotlib-3.3.3 pillow-8.0.1 pyparsing-2.4.7 wordcloud-1.8.1
WARNING: You are using pip version 20.3.1; however, version 20.3.3 is available.
You should consider upgrading via the ‘d:python38-32python.exe -m pip install --upgrade pip’ command.

4.验证安装成功?

命令:pip show wordcloud

D:Python38-32>pip show wordcloud
Name: wordcloud
Version: 1.8.1
Summary: A little word cloud generator
Home-page: https://github.com/amueller/word_cloud
Author: Andreas Mueller
Author-email: t3kcit+wordcloud@gmail.com
License: MIT
Location: d:python38-32libsite-packages
Requires: numpy, matplotlib, pillow
Required-by:

截图如下:
D:Python38-32>
本文这段都不想记录,太伤了~
毁灭吧,我累了。----来自王者荣耀的限时特效,哈哈。

5.结语

没啥说的了,动手实操都在上边了,反正最近我是和pip install 库名 干上了,直接安装都不行。

如果要看大佬的爬虫案例 ,去搜msdn一个叫“不正经的kimol君”的大佬吧;
或者微信公众号“Python干货铺子”的大佬吧。

最后

以上就是含糊画笔为你收集整理的wordcloud安装,又给我来安装失败,嚓的全部内容,希望文章能够帮你解决wordcloud安装,又给我来安装失败,嚓所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(39)

评论列表共有 0 条评论

立即
投稿
返回
顶部