Having an issue with the command "pip install"

SS Sumve sssumve at gmail.com
Sun Dec 19 09:05:00 EST 2021


Whenever I try to install any packages with “pip install”, I am getting an
error.



Traceback (most recent call last):

  File
"C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\runpy.py",
line 196, in _run_module_as_main

    return _run_code(code, main_globals, None,

  File
"C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\runpy.py",
line 86, in _run_code

    exec(code, run_globals)

  File
"C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\Scripts\pip.exe\__main__.py",
line 7, in <module>

  File
"C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_internal\cli\main.py",
line 68, in main

    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))

  File
"C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_internal\commands\__init__.py",
line 109, in create_command

    module = importlib.import_module(module_path)

  File
"C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py",
line 126, in import_module

    return _bootstrap._gcd_import(name[level:], package, level)

  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import

  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load

  File "<frozen importlib._bootstrap>", line 1006, in
_find_and_load_unlocked

  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked

  File "<frozen importlib._bootstrap_external>", line 883, in exec_module

  File "<frozen importlib._bootstrap>", line 241, in
_call_with_frames_removed

  File
"C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_internal\commands\install.py",
line 14, in <module>

    from pip._internal.cli.req_command import (

  File
"C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_internal\cli\req_command.py",
line 20, in <module>

    from pip._internal.index.collector import LinkCollector

  File
"C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_internal\index\collector.py",
line 34, in <module>

    from pip._internal.network.session import PipSession

  File
"C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_internal\network\session.py",
line 31, in <module>

    from pip._internal.network.auth import MultiDomainBasicAuth

  File
"C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_internal\network\auth.py",
line 22, in <module>

    from pip._internal.vcs.versioncontrol import AuthInfo

  File
"C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_internal\vcs\__init__.py",
line 6, in <module>

    import pip._internal.vcs.git

ModuleNotFoundError: No module named 'pip._internal.vcs.git'


I got this error when I tried to install numpy.
Please help me to solve this problem.


More information about the Python-list mailing list