简体   繁体   中英

Unable to use tensorflow with python 3.8

I have a CPU only laptop. I'm trying to use tensorflow in python using pycharm. I installed Python 3.8 (64 bit) and installed tensorflow successfully using pip . However, when i try to import tensorflow into python, it gives me the attached error. I'm new to python and pycharm. I'm running WIndows 10 on my system. The error I get is:

ImportError: DLL load failed while importing _pywrap_tensorflow_internal: The specified module could not be found.

You need to download Visual Studio 2015-2019 x86 and x64 from here: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

Then restart your python script and it should work.

Source: https://github.com/tensorflow/tensorflow/issues/35749

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