创建日期:2020.03.02
修改日期:2020.03.02
1、背景
使用Jupter notebook 运行程序,需要安装wordcloud。
2、安装wordcloud
(1)使用 管理员 模式打开,anaconda prompt
(2)运行下面代码
conda install -c conda-forge wordcloud
(3)运行过程如下
Solving environment: done
## Package Plan ##
environment location: C:\ProgramData\Anaconda3
added / updated specs:
- wordcloud
The following NEW packages will be INSTALLED:
conda-package-handling: 1.6.0-py36h2fa13f4_1 conda-forge
krb5: 1.16.4-hdd46e55_0 conda-forge
matplotlib-base: 3.1.0-py36h3e3dc42_0 conda-forge
tbb: 2020.1-he980bc4_0 conda-forge
tbb4py: 2019.9-py36he980bc4_1 conda-forge
tqdm: 4.43.0-py_0 conda-forge
wordcloud: 1.6.0-py36hfa6e2cd_0 conda-forge
The following packages will be UPDATED:
ca-certificates: 2018.03.07-0 --> 2019.11.28-hecc5488_0 conda-forge
certifi: 2018.4.16-py36_0 --> 2019.11.28-py36_0 conda-forge
conda: 4.5.4-py36_0 --> 4.8.2-py36_0 conda-forge
cryptography: 2.2.2-py36hfa6e2cd_0 --> 2.8-py36hb32ad35_1 conda-forge
curl: 7.60.0-h7602738_0 --> 7.68.0-h4496350_0 conda-forge
freetype: 2.8-h51f8f2c_1 --> 2.10.0-h563cfd7_1 conda-forge
libcurl: 7.60.0-hc4dcbb0_0 --> 7.68.0-h4496350_0 conda-forge
libpng: 1.6.34-h79bbb47_0 --> 1.6.37-h7602738_0 conda-forge
libssh2: 1.8.0-hd619d38_4 --> 1.8.2-h642c060_2 conda-forge
mkl_fft: 1.0.1-py36h452e1ab_0 --> 1.0.10-py36_0 conda-forge
mkl_random: 1.0.1-py36h9258bd6_0 --> 1.0.2-py36_0 conda-forge
openssl: 1.0.2o-h8ea7d77_0 --> 1.1.1d-hfa6e2cd_0 conda-forge
pillow: 5.1.0-py36h0738816_0 --> 5.4.1-py36hdc69c19_0
pycurl: 7.43.0.1-py36h74b6da3_0 --> 7.43.0.5-py36h636d3bd_0 conda-forge
qt: 5.9.5-vc14he4a7d60_0 --> 5.9.7-vc14h73c81de_0
sqlite: 3.23.1-h35aae40_0 --> 3.30.1-hfa6e2cd_0 conda-forge
tk: 8.6.7-hcb92d03_3 --> 8.6.10-hfa6e2cd_0 conda-forge
vc: 14-h0510ff6_3 --> 14.1-h0510ff6_4
vs2015_runtime: 14.0.25123-3 --> 14.16.27012-hf0eaf9b_1
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(base) C:\Windows\system32>
(4)查看是否安装成功,会显示wordcloud
(base) C:\Windows\system32>conda list
3、问题解决
conda install 软件时出现如下错误信息:
Preparing transaction: done
Verifying transaction: done
Executing transaction:
failed ERROR conda.core.link:_execute(502):
解决办法:
权限不够,需要以管理员方式运行Anaconda prompt进行安装
4、参考连接:
https://blog.csdn.net/xiangshangbashaonian/article/details/89674590
https://blog.csdn.net/feizai1208917009/article/details/86673211