鱼C论坛

 找回密码
 立即注册
查看: 1396|回复: 4

pip安装matplotlib总是报错most recent call last)

[复制链接]
发表于 2020-7-1 23:27:13 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
C:\Users\11859>pip install matplotlib
Traceback (most recent call last):
  File "c:\users\11859\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\11859\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\11859\AppData\Local\Programs\Python\Python38\Scripts\pip.exe\__main__.py", line 5, in <module>
  File "c:\users\11859\appdata\local\programs\python\python38\lib\site-packages\pip\_internal\__init__.py", line 40, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "c:\users\11859\appdata\local\programs\python\python38\lib\site-packages\pip\_internal\cli\autocompletion.py", line 8, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "c:\users\11859\appdata\local\programs\python\python38\lib\site-packages\pip\_internal\cli\main_parser.py", line 11, in <module>
    from pip._internal.commands import (
  File "c:\users\11859\appdata\local\programs\python\python38\lib\site-packages\pip\_internal\commands\__init__.py", line 6, in <module>
    from pip._internal.commands.completion import CompletionCommand
  File "c:\users\11859\appdata\local\programs\python\python38\lib\site-packages\pip\_internal\commands\completion.py", line 6, in <module>
    from pip._internal.cli.base_command import Command
  File "c:\users\11859\appdata\local\programs\python\python38\lib\site-packages\pip\_internal\cli\base_command.py", line 26, in <module>
    from pip._internal.index import PackageFinder
ImportError: cannot import name 'PackageFinder' from 'pip._internal.index' (c:\users\11859\appdata\local\programs\python\python38\lib\site-packages\pip\_internal\index\__init__.py)
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-7-1 23:28:37 | 显示全部楼层
应该是pip3 install Matplotlib ,你的是3.8的
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-7-1 23:33:24 | 显示全部楼层

在 cmd 运行下面这个代码试试看:
python -m pip install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-7-2 00:55:27 | 显示全部楼层
C:\Users\11859>python get-pip.py
Collecting pip
  Using cached pip-20.1.1-py2.py3-none-any.whl (1.5 MB)
Collecting wheel
  Downloading wheel-0.34.2-py2.py3-none-any.whl (26 kB)
Installing collected packages: pip, wheel
  Attempting uninstall: pip
    Found existing installation: pip 19.2.3
    Uninstalling pip-19.2.3:
      Successfully uninstalled pip-19.2.3
Successfully installed pip-20.1.1 wheel-0.34.2

C:\Users\11859>pip install matplotlib
ERROR: Could not find a version that satisfies the requirement matplotlib (from versions: none)
ERROR: No matching distribution found for matplotlib

C:\Users\11859>python -m pip install matplotlib
ERROR: Could not find a version that satisfies the requirement matplotlib (from versions: none)
ERROR: No matching distribution found for matplotlib

C:\Users\11859>python -m pip install --upgrade pip
Requirement already up-to-date: pip in c:\users\11859\appdata\local\programs\python\python38\lib\site-packages (20.1.1)

C:\Users\11859>pip install -U matplotlib
Collecting matplotlib
  Downloading matplotlib-3.2.2-cp38-cp38-win_amd64.whl (9.2 MB)
     |█████▌                          | 1.5 MB 8.7 kB/s eta 0:14:47            
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-7-2 00:56:06 | 显示全部楼层
pip版本低了。。。。。。
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-1-20 03:51

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表