C:\WINDOWS\system32>pip --version
Traceback (most recent call last):
File “”, line 198, in _run_module_as_main
File “”, line 88, in run_code
File "C:\Users\user pc\AppData\Roaming\Python\Python311\Scripts\pip.exe_main.py", line 4, in
File “C:\Python311\Lib\site-packages\pip_internal\cli\main.py”, line 10, in
from pip._internal.cli.autocompletion import autocomplete
File “C:\Python311\Lib\site-packages\pip_internal\cli\autocompletion.py”, line 10, in
from pip._internal.cli.main_parser import create_main_parser
File “C:\Python311\Lib\site-packages\pip_internal\cli\main_parser.py”, line 9, in
from pip._internal.build_env import get_runnable_pip
File “C:\Python311\Lib\site-packages\pip_internal\build_env.py”, line 19, in
from pip._internal.cli.spinners import open_spinner
File “C:\Python311\Lib\site-packages\pip_internal\cli\spinners.py”, line 9, in
from pip._internal.utils.logging import get_indentation
File “C:\Python311\Lib\site-packages\pip_internal\utils\logging.py”, line 29, in
from pip.internal.utils.misc import ensure_dir
File “C:\Python311\Lib\site-packages\pip_internal\utils\misc.py”, line 37, in
from pip.vendor.tenacity import retry, stop_after_delay, wait_fixed
File "C:\Python311\Lib\site-packages\pip_vendor\tenacity_init.py", line 27, in
from concurrent import futures
File "C:\Python311\Lib\site-packages\concurrent\futures_init.py", line 8, in
from concurrent.futures._base import (FIRST_COMPLETED,
File “C:\Python311\Lib\site-packages\concurrent\futures_base.py”, line 357
raise type(self._exception), self._exception, self._traceback
^
SyntaxError: invalid syntax
I tried to uninstall and then install Python to the latest version, still gives the same error. I tried to upgrade pip still gives the same error. I tried to downgrade Python still gives the same error. I tried to install and uninstall modules by using pip in the command prompt still gives the same error. I even updated the environment path still gives the same error. What is the solution for these errors? Please help it is urgent.
Preformatted text