Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues on windows #18

Open
xpressonlineventures opened this issue Sep 19, 2024 · 1 comment
Open

Issues on windows #18

xpressonlineventures opened this issue Sep 19, 2024 · 1 comment

Comments

@xpressonlineventures
Copy link

I am having a bit of a problem getting the script to run on Windows. This is the error I am getting: "'python3' is not recognized as an internal or external command, operable program, or batch file.". I have set my environment variables; I also copy and paste the python.exe, then rename it python3.exe, just to see if it would work, and I keep getting the same error. 

These are my environment variables: (A) C:\Program Files\Python312\Scripts
(B) C:\Program Files\Python312\

I would appreciate any suggestions.

@pablo-gbr
Copy link
Contributor

pablo-gbr commented Sep 24, 2024

Hi, sorry for the late reply

Did you set the python path when creating the object?
Like this:

$deepface = new \Astrotomic\DeepFace\DeepFace(
    python: 'C:/Your/path/here',
);

Also, do you have the proper PYTHONPATH set on Windows?
Consider using my branch until the PR is merged, it has support for the latest version of deepface and it has some issues fixed that were added by mistake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants