Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tensorflow importing crashes Python without any error on Windows

Yesterday I was trying to solve matplotlib problems on Windows, which included solving from matplotlib import ft2font error. I have added HDF5_DISABLE_VERSION_CHECK=2 for that. But today I found, that tensorflow doesn't work anymore:

> python                                                                                              
Python 3.5.5 |Anaconda, Inc.| (default, Apr  7 2018, 04:52:34) [MSC v.1900 64 bit (AMD64)] on win32   
Type "help", "copyright", "credits" or "license" for more information.                                
>>> import tensorflow as tf                                                                           

>

It thinks 30 seconds, then exits Python without any error.

Where can I see logs or crashdumps or something?

like image 258
Dims Avatar asked Oct 30 '18 10:10

Dims


1 Answers

If you try import h5py, and get ImportError: DLL load failed, you probably have some problem as mine. Try:

  1. Uninstall h5py via anaconda navigator, some relative libs (tensorflow) will be uninstalled as well.

  2. Go VM path in anaconda installation, D:\Anaconda\envs\YOUR_VM\Lib\site-packages, delete h5py and h5py-2.8.0-py3.6.egg-info folders

  3. Reinstall tensorflow or tensorflow-gpu

like image 82
Hongyi Jin Avatar answered Oct 19 '22 04:10

Hongyi Jin