BBridges
BBridges

Reputation: 130

Not recognized as an internal or external command, operable program or batch file

Our professor has given us the assignment of downloading and setting up... https://github.com/spyoungtech/hikvision-recover ...for a cyber security class

As stated I used pip to install from the command line. I then test to see if it was successful with pip show hikvision-recover and it is successful.

enter image description here

Yet, when I try to run the command on a windows shell I get a "Not recognized as an internal or external command." I'm assuming this has to do with the command not being found? But I'm not really sure where to start.

According to documentation I should just be able to

hikvision-recover <serial number> <Date information>

and it will return the recovery password.

Update: When I try python -m I get enter image description here

Upvotes: 0

Views: 1974

Answers (2)

Jonathan Chow
Jonathan Chow

Reputation: 1467

It looks like the pip you used to install hikvision-recover is not the same version of python you are using. When installing a module, it is always a good practice to do the following on your command prompt:

where python

It will show you which python executable the prompt will use where invoke python.

Double check pip is the same version as python:

where pip

If the version are not the same, you need to modify your environment variable. Go Window menu - Edit the system environment variable - Environment variables - Path (User variable) and modify the order should you have more than one python version on the list.

Upvotes: 1

aviso
aviso

Reputation: 2841

The executable, if it was created, is not in your path. You can try:

python -m hikvision-recover <serial number> <Date information>

Upvotes: 1

Related Questions