Skip to content

README says node-gyp supports only Python2.7 but node-gyp says it doesn't support it  #7716

@stephanzlatarev

Description

@stephanzlatarev

tfjs/tfjs-node/README.md

Lines 42 to 44 in f7fa5af

#### Windows / Mac OS X Requires Python 2.7
Windows & OSX build support for `node-gyp` requires Python 2.7. Be sure to have this version before installing `@tensorflow/tfjs-node` or `@tensorflow/tfjs-node-gpu`. Machines with Python 3.x will not install the bindings properly.

The error message I receive from node-gyp contradicts the above:

npm ERR! gyp info using node-gyp@9.3.1
npm ERR! gyp info using node@16.20.0 | win32 | x64
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
npm ERR! gyp ERR! find Python checking if "python3" can be used
npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
npm ERR! gyp ERR! find Python checking if "python" can be used
npm ERR! gyp ERR! find Python - executable path is "C:\tools\python2\python.exe"
npm ERR! gyp ERR! find Python - version is "2.7.0"
npm ERR! gyp ERR! find Python - version is 2.7.0 - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED

Is the README statement outdated, or am I doing something wrong?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions