Skip to content

Instantly share code, notes, and snippets.

@4skinSkywalker
Last active February 4, 2026 16:43
Show Gist options
  • Select an option

  • Save 4skinSkywalker/209e89be012abb29859fc6d0f70003d6 to your computer and use it in GitHub Desktop.

Select an option

Save 4skinSkywalker/209e89be012abb29859fc6d0f70003d6 to your computer and use it in GitHub Desktop.
# How To Make Fucking TensorFlow Work On Fucking Windows
1. Install [Node Version Manager](https://github.com/coreybutler/nvm-windows)
1.1. Run `nvm install 16.20.2`
1.2. Run `nvm use 16.20.2`
2. Install the Windows `vs_BuildTools.exe` and `vs_Community.exe` C++ Developer [Visual Studio 2022](https://learn.microsoft.com/it-it/visualstudio/releases/2022/release-history#release-dates-and-build-numbers)
3. Install [Python 3.10](https://www.python.org/ftp/python/3.10.11/python-3.10.11-amd64.exe)
4. Run `npm i -g node-gyp`
5. Run `npm i -g node-pre-gyp`
6. Run `npm i @tensorflow/tfjs-node@3.1.0`
7. Move into the `node_modules/@tensorflow/tfjs-node` and run `node-pre-gyp rebuild`
8. Copy all files inside `node_modules/@tensorflow/tfjs-node/deps/lib/` inside `node_modules/@tensorflow/tfjs-node/lib/napi-v7/`
Now you can run your TensorFlow script!
@4skinSkywalker
Copy link
Author

It's probably possible to install more recent tf version on more recent node version. I'm happy enough with this...

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