pip install wordcloud安装失败用这个方法安装即可

pip install wordcloud安装失败用这个方法安装即可

  1. 打开这个网址下载wordcloud.whl文件

https://www.lfd.uci.edu/~gohlke/pythonlibs/#wordcloud

  1. 打开下载的文件夹空白位置,按住shift键盘,右击,有个从此处打开powershell窗口
  2. 复制下载的文件名,记得复制到全,有whl后缀
  3. 执行以下命令 pip install wordcloud-1.6.0-cp38-cp38-win_amd64.whl
  4. pip install wordcloud-1.6.0-cp38-cp38-win_amd64.whl
    ERROR: wordcloud-1.6.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.错误:WordCloud-1.6.0-cp38-cp38win_amd64.whl不是这个平台上的支撑轮。
    原来是下载的版本错了,cmd一看原来是32位安装的python
C:\Users\Administrator>python
Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:21:23) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
`
6.于是重新下载32位的whl文件,要核对自己的python版本 和系统去下载相对应的文件就安装成功了

``7.pip install imageio 失败用下面这个命令安装so的一下就可以了

```python
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn imageio
C:\Users\Administrator>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn imageio
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting imageio
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/4c/2b/9dd19644f871b10f7e32eb2dbd6b45149c350b4d5f2893e091b882e03ab7/imageio-2.8.0-py3-none-any.whl (3.3 MB)
     |████████████████████████████████| 3.3 MB 273 kB/s
Requirement already satisfied: numpy in c:\users\administrator\appdata\local\programs\python\python38-32\lib\site-packages (from imageio) (1.18.2)
Requirement already satisfied: pillow in c:\users\administrator\appdata\local\programs\python\python38-32\lib\site-packages (from imageio) (7.0.0)
Installing collected packages: imageio
Successfully installed imageio-2.8.0

rom openpyxl.workbook import Workbook ModuleNotFoundError: No module
named ‘openpyxl’

8.pip install openpyxl安装失败,用下面这个命令即可

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn openpyxl
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting openpyxl
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/95/8c/83563c60489954e5b80f9e2596b93a68e1ac4e4a730deb1aae632066d704/openpyxl-3.0.3.tar.gz (172 kB)
     |████████████████████████████████| 172 kB 939 kB/s
Collecting jdcal
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f0/da/572cbc0bc582390480bbd7c4e93d14dc46079778ed915b505dc494b37c57/jdcal-1.4.1-py2.py3-none-any.whl (9.5 kB)
Collecting et_xmlfile
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/22/28/a99c42aea746e18382ad9fb36f64c1c1f04216f41797f2f0fa567da11388/et_xmlfile-1.0.1.tar.gz (8.4 kB)
Installing collected packages: jdcal, et-xmlfile, openpyxl
    Running setup.py install for et-xmlfile ... done
    Running setup.py install for openpyxl ... done
Successfully installed et-xmlfile-1.0.1 jdcal-1.4.1 openpyxl-3.0.3

你可能感兴趣的:(python实战,python)