skip to Main Content

Today I opened VS Code and typed

pip

and it said

Fatal error in launcher: Unable to create process using 
'"C:Users{User Name}AppDataLocalProgramsPythonPython311python.exe"  "C:Users{User Name}AppDataLocalProgramsPythonPython311Scriptspip.exe" ': 
The system cannot find the file specified.

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

2

Answers


  1. Chosen as BEST ANSWER

    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


  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search