遵道理合 发表于 2022-4-28 19:35:01

python wordcould库安装失败

我用了csdn上面所有的方法都没有安装成功
现在是这样的了
C:\Users\60288\Desktop\1.jpg
希望各位大神可以指导一下,感激不尽。

遵道理合 发表于 2022-4-28 19:37:12

D:\>pip install wordcloud-1.8.1-cp39-cp39-win_amd64.whl
WARNING: Ignoring invalid distribution -iwisolver (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -iwisolver (c:\programdata\anaconda3\lib\site-packages)
Processing d:\wordcloud-1.8.1-cp39-cp39-win_amd64.whl
Requirement already satisfied: matplotlib in c:\programdata\anaconda3\lib\site-packages (from wordcloud==1.8.1) (3.4.3)
Requirement already satisfied: numpy>=1.6.1 in c:\programdata\anaconda3\lib\site-packages (from wordcloud==1.8.1) (1.20.3)
Requirement already satisfied: pillow in c:\programdata\anaconda3\lib\site-packages (from wordcloud==1.8.1) (8.4.0)
Requirement already satisfied: pyparsing>=2.2.1 in c:\programdata\anaconda3\lib\site-packages (from matplotlib->wordcloud==1.8.1) (3.0.4)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\programdata\anaconda3\lib\site-packages (from matplotlib->wordcloud==1.8.1) (1.4.2)
Requirement already satisfied: cycler>=0.10 in c:\programdata\anaconda3\lib\site-packages (from matplotlib->wordcloud==1.8.1) (0.10.0)
Requirement already satisfied: python-dateutil>=2.7 in c:\programdata\anaconda3\lib\site-packages (from matplotlib->wordcloud==1.8.1) (2.8.2)
Requirement already satisfied: six in c:\programdata\anaconda3\lib\site-packages (from cycler>=0.10->matplotlib->wordcloud==1.8.1) (1.16.0)
wordcloud is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.
WARNING: Ignoring invalid distribution -iwisolver (c:\programdata\anaconda3\lib\site-packages)

遵道理合 发表于 2022-4-28 19:37:44

现在是这个样子,图片发不出来。

Twilight6 发表于 2022-4-28 20:05:00


你是用 Anaconda,可以直接用 conda 装试试看,打开 Anaconda Prompt ,直接输入:

conda install wordcould
默认是在 base 环境下安装模块,若你电脑只有这个环境,那么直接输入即可,否则就输入

activate 你需要安装的环境名
切换环境到你需要安装的环境,然后再输入上方安装代码即可

遵道理合 发表于 2022-4-28 21:11:10

Twilight6 发表于 2022-4-28 20:05
你是用 Anaconda,可以直接用 conda 装试试看,打开 Anaconda Prompt ,直接输入:




好的,我先试一下

遵道理合 发表于 2022-4-28 21:13:46

Twilight6 发表于 2022-4-28 20:05
你是用 Anaconda,可以直接用 conda 装试试看,打开 Anaconda Prompt ,直接输入:




Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

- wordcould

Current channels:

- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.
现在是这样了
页: [1]
查看完整版本: python wordcould库安装失败