因为输入命令行:pip install matplotlib,可是失败了。
下面有解决方法:
C:\windows\system32>pip install -i https://mirrors.ustc.edu.cn/pypi/web/simple/ matplotlib
Looking in indexes: https://mirrors.ustc.edu.cn/pypi/web/simple/
Collecting matplotlib
Downloading https://mirrors.bfsu.edu.cn/pypi/web/packages/42/c6/5c8c25e1821b38c325816d46bf4ad47f9c890ab87039ab2a4db4246f1960/matplotlib-3.5.1-cp310-cp310-win_amd64.whl (7.2 MB)
---------------------------------------- 7.2/7.2 MB 307.1 kB/s eta 0:00:00
Collecting numpy>=1.17
Downloading https://mirrors.bfsu.edu.cn/pypi/web/packages/5b/e5/527451a9fb79e1cffe18ee74d79e8b8da44272a70bf924ec94143d956831/numpy-1.22.3-cp310-cp310-win_amd64.whl (14.7 MB)
---------------------------------------- 14.7/14.7 MB 320.0 kB/s eta 0:00:00
Collecting pyparsing>=2.2.1
Downloading https://mirrors.bfsu.edu.cn/pypi/web/packages/d9/41/d9cfb4410589805cd787f8a82cddd13142d9bf7449d12adf2d05a4a7d633/pyparsing-3.0.8-py3-none-any.whl (98 kB)
---------------------------------------- 98.5/98.5 KB 434.8 kB/s eta 0:00:00
Collecting packaging>=20.0
Downloading https://mirrors.bfsu.edu.cn/pypi/web/packages/05/8e/8de486cbd03baba4deef4142bd643a3e7bbe954a784dc1bb17142572d127/packaging-21.3-py3-none-any.whl (40 kB)
---------------------------------------- 40.8/40.8 KB ? eta 0:00:00
Collecting kiwisolver>=1.0.1
Downloading https://mirrors.bfsu.edu.cn/pypi/web/packages/37/97/cf42ffb6bd8d4f80cf8831b6786394941574cada008dd4b33886882c5edb/kiwisolver-1.4.2-cp310-cp310-win_amd64.whl (55 kB)
---------------------------------------- 55.3/55.3 KB 1.4 MB/s eta 0:00:00
Collecting cycler>=0.10
Downloading https://mirrors.bfsu.edu.cn/pypi/web/packages/5c/f9/695d6bedebd747e5eb0fe8fad57b72fdf25411273a39791cde838d5a8f51/cycler-0.11.0-py3-none-any.whl (6.4 kB)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\a-xiaobodou\appdata\local\programs\python\python310\lib\site-packages (from matplotlib) (2.7.5)
Collecting pillow>=6.2.0
Downloading https://mirrors.bfsu.edu.cn/pypi/web/packages/a8/df/1177786a2d1c0bf732ba6d5f05a2fa40f016e81e1c16d62f1101e35d271e/Pillow-9.1.0-cp310-cp310-win_amd64.whl (3.3 MB)
---------------------------------------- 3.3/3.3 MB 229.2 kB/s eta 0:00:00
Collecting fonttools>=4.22.0
Downloading https://mirrors.bfsu.edu.cn/pypi/web/packages/2f/85/2f6e42fb4b537b9998835410578fb1973175b81691e9a82ab6668cf64b0b/fonttools-4.33.3-py3-none-any.whl (930 kB)
---------------------------------------- 930.9/930.9 KB 150.7 kB/s eta 0:00:00
Requirement already satisfied: six>=1.5 in c:\users\a-xiaobodou\appdata\local\programs\python\python310\lib\site-packages (from python-dateutil>=2.7->matplotlib) (1.16.0)
Installing collected packages: pyparsing, pillow, numpy, kiwisolver, fonttools, cycler, packaging, matplotlib
Successfully installed cycler-0.11.0 fonttools-4.33.3 kiwisolver-1.4.2 matplotlib-3.5.1 numpy-1.22.3 packaging-21.3 pillow-9.1.0 pyparsing-3.0.8
C:\windows\system32>