简体   繁体   中英

error during the import of tensorflow-gpu version

import tensorflow Traceback (most recent call last): File "", line 1, in import tensorflow File "C:\\Users\\nayer meleka\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\tensorflow__init__.py", line 39, in from tensorflow._api.v1 import app ModuleNotFoundError: No module named 'tensorflow._api'

this error happend when I tried to import it from terminal

When I tried to use tensorflow this error pop up.

I installed it using pip didn't use any virtualmachine.

Try installing tensorflow-gpu again by running the command prompt in administrator mode still through pip. And keep in mind that it won't just start using the GPU by itself, you will have to install other dependencies too such as Visual Studio, CUDA, CUDNN , etc.

Read this: https://www.quantinsti.com/blog/install-tensorflow-gpu

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM