Python 'pip install' not working/recognised

Question:

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
Asked By: aPythonUser

||

Answers:

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
Answered By: Kraigolas
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.