-2

I have already installed Python in my laptop (x64). I am also trying to install pip (termed as Python Package Index (PyPI)) and it is working when I run the command pip -V which displays the version and the location directory of it. But when I run the command python --version , it does not show me the version of it. enter image description here Also when I run the command it returns this :

pip install opencv-python p' is not recognized as an internal or external command, operable program or batch file.

Do I have to install python again?

Roman Patutin
  • 2,171
  • 4
  • 23
  • 27
  • 2
    I think you need to add the python environment on your `environment variables` if you're on windows (you are :D) – Ice Bear Dec 23 '20 at 17:03
  • How do i do that? – Raphael Arpa Dec 23 '20 at 17:05
  • There is no need ever to add the location of the python executable into the content of the `%Path%` environment variable. What you need to learn is how to use full or relative absolute paths and file extensions, e.g. `C:\Python38\python.exe --version` – Compo Dec 23 '20 at 17:32

1 Answers1

4

You need to add python to the windows path like this:

enter image description here

Akif
  • 7,098
  • 7
  • 27
  • 53
Emin TATLI
  • 82
  • 8