Installing TensorFlow into Blender

TensorFlow is an open-source library for creating and training neural networks by Google.

It can be installed into Blender using the pip package installer.

Before installation, make sure your system meets the minimum requirements:

  • Blender must be version 2.80 or older (the minimum required Python version in Blender is 3.7)
  • Your operating system must be:
    • Windows 7 (x64) or older
    • Ubuntu 16.04 (x64) or older
    • MacOS 10.12.6 (x64) or older

For installation under Windows, you may need to install MS Visual C ++ Redistributable for Visual Studio

To install TensorFlow into Blender, we can use the script for installing Python packages with pip, specifying “tensorflow” in the package name.

Open the Text Editor window in Blender, paste this code into it and execute it by pressing the “Run Script” button with an arrow.

After installation, we can check the availability of TensorFlow in Blender by executing the following code from the Python console or Text Editor:

If you have a graphic card with CUDA support, TensorFlow can compute using the GPU. To enable this mode, it needs to additionally install:

See the official TensorFlow website for GPU installation details.

After installing the listed applications, TensorFlow must automatically connect to the GPU itself.

0 0 votes
Article Rating
Subscribe
Notify of
guest

4 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
nikos
nikos
29 days ago

Hi ! Thanks for this article ! On my side (Blender 2.81 on linux) the installation process goes well but “import tensoflow” returns “No module named ‘tensorflow’

Any idea ?

Gabor
Gabor
7 months ago

Hello, I got errors in the last phase (tensor package) in install.. I use Admin mode but write restriction.
Gabor

NikitaD
Admin
7 months ago
Reply to  Gabor

Hello! Maybe your admin mode is not full. You need to be under the admin account and run blender as administrator.
Or you can try to download the portable version of Blender, install it somewhere but not in your “Program Files” directory, and try to install TensorFlow to this Blender installation.