-1

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

1 Answers1

2

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
Kraigolas
  • 5,121
  • 3
  • 12
  • 37
  • Yes I was running the command in the terminal but it does not work for both commands. – aPythonUser Aug 23 '22 at 16:06
  • 2
    @aPythonUser You were running the command in a **Python** terminal. Open command prompt, or the bash terminal, etc... The error you recieved is specifically a Python error, you would not see it unless you wrote the command in Python. If you are truly in a terminal, you've managed to get yourself into python (probably by writing `python`). Type `quit()` and try again. – Kraigolas Aug 23 '22 at 16:08