Search code examples
pythonpippython-3.10

Python 'pip install' not working/recognised


I've been trying to use the "pip install" python command for a while but have had no luck.

I have checked that pip came in the python installer package, tried repairing the program on the installer and have even tried installing the Python 3.10 app from the Microsoft store (instead of using IDLE) and running the command from there. Nothing has worked at the moment.

This is what I get (IDLE Python 3.10 in the main idle shell terminal):

pip install auto-py-to-exe
SyntaxError: invalid syntax

Solution

  • You're running pip inside of Python. That's not how it should be used. Open a terminal and try

    python -m pip install auto-py-to-exe
    

    or

    pip install auto-py-to-exe