Tag Archives: Python.exe Error

Python.exe Error: No module named pip.__main__; ‘pip’ is a package and cannot be directly executed

WARNING: You are using pip version 19.2.3, however version 20.2.2 is available.
You should consider upgrading via the ‘python -m pip install –upgrade pip’ command.

Today I installed the mysql connection driver from the command line and found a warning that the pip version is too low.

Executed: python -m pip install –upgrade pip Resulting in the following error.

python.exe: No module named pip.__main__; ‘pip’ is a package and cannot be directly executed

Solution: python -m ensurepip

Perform again: python -m pip install –upgrade pip

upgrade success