任务:安装第三方库
C:\Users\l>pip install wheel
Collecting wheel
Downloading https://files.pythonhosted.org/packages/a7/00/3df031b3ecd5444d5721
41321537080b40c1c25e1caa3d86cdd12e5e919c/wheel-0.35.1-py2.py3-none-any.whl
Installing collected packages: wheel
Successfully installed wheel-0.35.1
C:\Users\l>pip install wordcloud
Collecting wordcloud
Downloading https://files.pythonhosted.org/packages/27/62/392187e519c7c39905fb
47814a3d79a5fedf1f5c398759fef156d2bd18d3/wordcloud-1.8.0-cp37-cp37m-win_amd64.wh
l (157kB)
|████████████████▌ | 81kB 3.2kB/s eta 0:00:2
|███████████████████ | 92kB 3.5kB/s eta 0:00
|█████████████████████ | 102kB 3.9kB/s eta 0
|███████████████████████ | 112kB 3.9kB/s eta
|████████████████████████████████| 163kB 18
kB/s
Collecting pillow (from wordcloud)
Downloading https://files.pythonhosted.org/packages/36/fd/f83806d04175c0a58332
578143ee7a9c5702e6e0f134e157684c737ae55b/Pillow-7.2.0-cp37-cp37m-win_amd64.whl (
2.1MB)
|███████████████▌ | 993kB 72kB/s eta 0:00:15
|███████████████▌ | 1.0MB 99kB/s eta 0:00:11
|████████████████ | 1.0MB 99kB/s eta 0:00:11
|████████████████ | 1.0MB 99kB/s eta 0:00:11
|██████████████████ | 1.2MB 100kB/s eta 0:00
|████████████████████████████████| 2.1MB 18
|████████████████████████████████| 2.1MB 18
kB/s
Collecting matplotlib (from wordcloud)
Downloading https://files.pythonhosted.org/packages/87/67/e18ed11f774f42f9440e
ba7787af3104fb7d18c9bc4fbc19fae58ebe3df1/matplotlib-3.3.1-1-cp37-cp37m-win_amd64
.whl (8.9MB)
|██████████████▌ | 4.0MB 386kB/s eta 0:00:13
|██████████████▌ | 4.0MB 386kB/s eta 0:00:13
|██████████████▌ | 4.0MB 386kB/s eta 0:00:13
|██████████████▌ | 4.0MB 386kB/s eta 0:00:13
|██████████████████▌ | 5.1MB 285kB/s eta 0:0
|████████████████████████████████| 8.9MB 96kB/s
Collecting numpy>=1.6.1 (from wordcloud)
Downloading https://files.pythonhosted.org/packages/df/cb/7af5de0a4068ce314e13074a4f86afada7fa86
a095489bbc80f5dabd4156/numpy-1.19.1-cp37-cp37m-win_amd64.whl (12.9MB)
|████████████████████████████████| 12.9MB 26kB/s
Collecting certifi>=2020.06.20 (from matplotlib->wordcloud)
Downloading https://files.pythonhosted.org/packages/5e/c4/6c4fe722df5343c33226f0b4e0bb042e4dc134
83228b4718baf286f86d87/certifi-2020.6.20-py2.py3-none-any.whl (156kB)
|████████████████████████████████| 163kB 35kB/s
Collecting cycler>=0.10 (from matplotlib->wordcloud)
Downloading https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe
1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl
Collecting python-dateutil>=2.1 (from matplotlib->wordcloud)
Downloading https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b
306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl (227kB)
|████████████████████████████████| 235kB 44kB/s
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 (from matplotlib->wordcloud)
Downloading https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39
e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl (67kB)
|████████████████████████████████| 71kB 44kB/s
Collecting kiwisolver>=1.0.1 (from matplotlib->wordcloud)
Downloading https://files.pythonhosted.org/packages/7e/e5/d8bd2d063da3b6761270f29038d2bb9785c88f
f385009bf61589cde6e6ef/kiwisolver-1.2.0-cp37-none-win_amd64.whl (57kB)
|████████████████████████████████| 61kB 93kB/s
Collecting six (from cycler>=0.10->matplotlib->wordcloud)
Downloading https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3
ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl
Installing collected packages: pillow, certifi, six, cycler, python-dateutil, numpy, pyparsing, ki
wisolver, matplotlib, wordcloud
Successfully installed certifi-2020.6.20 cycler-0.10.0 kiwisolver-1.2.0 matplotlib-3.3.1 numpy-1.1
9.1 pillow-7.2.0 pyparsing-2.4.7 python-dateutil-2.8.1 six-1.15.0 wordcloud-1.8.0
C:\Users\l>pip install jieba
C:\Users\l>pip list
Package Version
------------------ ---------
certifi 2020.6.20
cycler 0.10.0
flake8 3.8.3
importlib-metadata 1.7.0
jieba 0.42.1
kiwisolver 1.2.0
matplotlib 3.3.1
mccabe 0.6.1
numpy 1.19.1
Pillow 7.2.0
pip 19.2.3
pycodestyle 2.6.0
pyflakes 2.2.0
pyparsing 2.4.7
python-dateutil 2.8.1
setuptools 41.2.0
six 1.15.0
wheel 0.35.1
wordcloud 1.8.0
yap 0.5.7
yapf 0.30.0
zipp 3.1.0
安装小结:
1.开启CMD窗口,建议不要改变默认路径;
2.先pip install wheel,再pip install wordcloud
3.如果在线安装失败,也可以下载对应版本到电脑本地安装,如网址:ttps://www.lfd.uci.edu/~gohlke/pythonlibs/
来源:oschina
链接:https://my.oschina.net/u/4266664/blog/4547267