I
I
Ilya Neizvestnyj2020-05-24 15:58:59
Python
Ilya Neizvestnyj, 2020-05-24 15:58:59

Why does an error appear when running the PyInstaller exe with TensorFlow2 and Tkinter libraries?

I have a small Tkinter application that uses the TensorFlow2 library. I run pyinstaller main2.pyand the project builds successfully, but when I run it via console I get this error . How can I fix this error?

Imports:

from tkinter import *
import tensorflow as tf
import tensorflow_hub as hub
import numpy as np
import PIL.Image

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2020-05-24
@hottabxp

Try putting the file 'cudart64_101.dll' next to main2.exe, because your program cannot find this dll.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question