使用pip命令都会显示AttributeError: type object 'Callable' has no attribute '_abc_registry'错误?

问题:使用pip命令都会显示AttributeError: type object 'Callable' has no attribute '_abc_registry'错误?
不知道什么鬼!!!!!!
pip命令不可使用,卸载更新都使用不了,
降pip版本也降不了,卸载typing也卸载不了
例如使用pip install xx
Traceback (most recent call last):
  File "F:\Python\python3.6\Scripts\pip-script.py", line 11, in
    load_entry_point('pip==20.1', 'console_scripts', 'pip')()
  File "F:\Python\python3.6\Lib\site-packages\pip\_internal\cli\main.py", line 73, in main
    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
  File "F:\Python\python3.6\Lib\site-packages\pip\_internal\commands\__init__.py", line 104, in create_command
    module = importlib.import_module(module_path)
  File "f:\python\python3.6\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1006, in _gcd_import
  File "", line 983, in _find_and_load
  File "", line 967, in _find_and_load_unlocked
  File "", line 677, in _load_unlocked
  File "", line 726, in exec_module
  File "", line 219, in _call_with_frames_removed
  File "F:\Python\python3.6\Lib\site-packages\pip\_internal\commands\install.py", line 24, in
    from pip._internal.cli.req_command import RequirementCommand, with_cleanup
  File "F:\Python\python3.6\Lib\site-packages\pip\_internal\cli\req_command.py", line 16, in
    from pip._internal.index.package_finder import PackageFinder
  File "F:\Python\python3.6\Lib\site-packages\pip\_internal\index\package_finder.py", line 21, in
    from pip._internal.index.collector import parse_links
  File "F:\Python\python3.6\Lib\site-packages\pip\_internal\index\collector.py", line 14, in
    from pip._vendor import html5lib, requests
  File "F:\Python\python3.6\Lib\site-packages\pip\_vendor\requests\__init__.py", line 114, in
    from . import utils
  File "F:\Python\python3.6\Lib\site-packages\pip\_vendor\requests\utils.py", line 25, in
    from . import certs
  File "F:\Python\python3.6\Lib\site-packages\pip\_vendor\requests\certs.py", line 15, in
    from pip._vendor.certifi import where
  File "F:\Python\python3.6\Lib\site-packages\pip\_vendor\certifi\__init__.py", line 1, in
    from .core import contents, where
  File "F:\Python\python3.6\Lib\site-packages\pip\_vendor\certifi\core.py", line 12, in
    from importlib.resources import read_text
  File "f:\python\python3.6\lib\importlib\resources.py", line 12, in
    from typing import Iterator, Optional, Set, Union   # noqa: F401
  File "F:\Python\Anaconda\anacon\Lib\site-packages\typing.py", line 1373, in
    class Callable(extra=collections_abc.Callable, metaclass=CallableMeta):
  File "F:\Python\Anaconda\anacon\Lib\site-packages\typing.py", line 1024, in __new__
    self._abc_registry = extra._abc_registry
AttributeError: type object 'Callable' has no attribute '_abc_registry'
解决办法:

 先看python 安装目录下 的 Scripts 目录中有没有 easy_install.exe

然后使用easy_install.exe pip==版本号

进行pip版本的下载

你可能感兴趣的:(Python)