输入pip list以后出现了错误
就是,我刚刚安装jieba库的时候,然后第一次输入成功,然后又输入了python-m pip install--upgrade pip,然后现在输入pip list是这个样子,求帮助
输入pip list以后的代码:
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python38\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\lenovo\appdata\local\programs\python\python38\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\Scripts\pip.exe_main.py", line 5, in
File "c:\users\lenovo\appdata\local\programs\python\python38\lib\site-packages\pip_internal\cli\main.py", line 9, in
from pip._internal.cli.autocompletion import autocomplete
File "c:\users\lenovo\appdata\local\programs\python\python38\lib\site-packages\pip_internal\cli\autocompletion.py", line 10, in
from pip._internal.cli.main_parser import create_main_parser
File "c:\users\lenovo\appdata\local\programs\python\python38\lib\site-packages\pip_internal\cli\main_parser.py", line 8, in
from pip._internal.cli import cmdoptions
File "c:\users\lenovo\appdata\local\programs\python\python38\lib\site-packages\pip_internal\cli\cmdoptions.py", line 23, in
from pip._internal.cli.parser import ConfigOptionParser
File "c:\users\lenovo\appdata\local\programs\python\python38\lib\site-packages\pip_internal\cli\parser.py", line 12, in
from pip._internal.configuration import Configuration, ConfigurationError
File "c:\users\lenovo\appdata\local\programs\python\python38\lib\site-packages\pip_internal\configuration.py", line 20, in
from pip._internal.exceptions import (
File "c:\users\lenovo\appdata\local\programs\python\python38\lib\site-packages\pip_internal\exceptions.py", line 14, in
from pip._vendor.rich.console import Console, ConsoleOptions, RenderResult
File "c:\users\lenovo\appdata\local\programs\python\python38\lib\site-packages\pip_vendor\rich\console.py", line 36, in
from typing import Literal, Protocol, runtime_checkable
ImportError: cannot import name 'Literal' from 'typing' (c:\users\lenovo\appdata\local\programs\python\python38\lib\typing.py)
怎么修改啊?
或者怎么办啊?