-1

Today I opened VS Code and typed

pip

and it said

Fatal error in launcher: Unable to create process using 
'"C:\Users\{User Name}\AppData\Local\Programs\Python\Python311\python.exe"  "C:\Users\{User Name}\AppData\Local\Programs\Python\Python311\Scripts\pip.exe" ': 
The system cannot find the file specified.

I tried to repair Python two times but it still didn't work

Daraan
  • 1,797
  • 13
  • 24
Mithun
  • 13
  • 4

2 Answers2

1

1、open win10 setting->system->Advanced system settings
2、add the python path to PATH
3、restart your vscode terminal or restart vscode or restart you computer, then reinstall using pip

if above don't work, you should try using cmd to install packages

Advanced system settings

add the python path to PATH

enter image description here

Jiu_Zou
  • 463
  • 1
  • 4
-1

I found a way to fix it!

  1. Uninstall Python and Python Launcher

  2. Install Python Again

  3. Run pip and it worked!

Proff of it worked

Mithun
  • 13
  • 4