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

Unable to install, Command fail #131

Open
lmartinez2001 opened this issue Oct 20, 2018 · 2 comments
Open

Unable to install, Command fail #131

lmartinez2001 opened this issue Oct 20, 2018 · 2 comments

Comments

@lmartinez2001
Copy link

lmartinez2001 commented Oct 20, 2018

Hello,

every time I'm trying to install this package I'm getting the following error :

` [email protected] install E:\Development\Web\Security\node_modules\face-recognition

node-gyp rebuild

E:\Development\Web\Security\node_modules\face-recognition>if not defined npm_config_node_gyp (node "E:\Software\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "E:\Software\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: E:\Software\Python\Python37\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:276:12)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at maybeClose (internal/child_process.js:915:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "E:\Software\nodejs\node.exe" "E:\Software\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd E:\Development\Web\Security\node_modules\face-recognition
gyp ERR! node -v v8.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\me\AppData\Roaming\npm-cache_logs\2018-10-19T23_58_53_157Z-debug.log`

I have reinstalled python, node-gyp, dlib-build but it's still not working

@Chuiantw1212
Copy link

I got this one also. It also happens to you with python3.7+windows I bet. Try downgrade the Python version.

@lmartinez2001
Copy link
Author

I'm still getting the same error with python 3.6

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

No branches or pull requests

2 participants