Why do I get traceback erros when using python on CMD?

Question:

I dont really know what’s happening here. I installed python 3.10.6 but I can seem to any python commands in windows cmd.

I was trying to install opencv for a project. But can seem to use pip or any other python commands. Need help. Thanks!

Asked By: Gaell Gelacio

||

Answers:

From the screenshot i see that the issue is you are trying to run python -V or pip commands from the python shell which is incorrect, you supposed to run these commands directly without typing python first.

Answered By: Oussama Ben Sassi

When you first typed "python" you activated the interactive console.
To exit you can type "exit()". Then you can type "python -v"

Answered By: TheShadow75
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.