Fatal error in launcher: Unable to create process using 'python.exe' and 'pip.exe'
14:26 09 Jul 2024

I am encountering an issue while trying to use pip to install packages in Python on Windows. Whenever I run pip install package_name or any pip command, I get the following error message:

Fatal error in launcher: Unable to create process using '"C:\Program Files\Python310\python.exe"  "C:\Program Files\Python310\Scripts\pip.exe" install package_name': The system cannot find the file specified.

Steps Taken: Checked Python Installation: Confirmed that Python and pip are installed correctly by running python --version and pip --version

Verified Environment Variables: Ensured that the Python installation directory (C:\Program Files\Python310\ and C:\Program Files\Python310\Scripts\) is included in the PATH environment variable.

Reinstalled Python: Reinstalled Python from scratch, ensuring to include Python in PATH during installation.

Disabled Antivirus: Temporarily disabled antivirus software to check if it was causing interference

python python-3.x windows pip environment-variables