C:\Users\Lenovo\anaconda3\envs\Noor\python.exe D:/PycharmProjects/pythonProject8/main.py
Traceback (most recent call last):
File "D:/PycharmProjects/pythonProject8/main.py", line 25, in
from keras.models import Model
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\keras\models__init.py", line 18, in
from keras.engine.functional import Functional
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\keras\engine\functional.py", line 24, in
import tensorflow.compat.v2 as tf
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\tensorflow__init.py", line 41, in
from tensorflow.python.tools import module_util as _module_util
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\tensorflow\python__init.py", line 47, in
from tensorflow.python import keras
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\tensorflow\python\keras\init__.py", line 27, in
from tensorflow.python.keras import models
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\tensorflow\python\keras\models.py", line 26, in
from tensorflow.python.keras.engine import functional
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\tensorflow\python\keras\engine\functional.py", line 38, in
from tensorflow.python.keras.engine import training as training_lib
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\tensorflow\python\keras\engine\training.py", line 53, in
from tensorflow.python.keras.saving import hdf5_format
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\tensorflow\python\keras\saving\hdf5_format.py", line 41, in
import h5py
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\h5py\init__.py", line 34, in
from . import version
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\h5py\version.py", line 17, in
from . import h5 as _h5
File "h5py\h5.pyx", line 41, in init h5py.h5
AttributeError: type object 'h5py.h5.H5PYConfig' has no attribute 'reduce_cython__'
C:\Users\Lenovo\anaconda3\envs\Noor\python.exe D:/PycharmProjects/pythonProject8/main.py Traceback (most recent call last): File "D:/PycharmProjects/pythonProject8/main.py", line 25, in
from keras.models import Model
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\keras\models__init.py", line 18, in
from keras.engine.functional import Functional
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\keras\engine\functional.py", line 24, in
import tensorflow.compat.v2 as tf
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\tensorflow__init.py", line 41, in
from tensorflow.python.tools import module_util as _module_util
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\tensorflow\python__init.py", line 47, in
from tensorflow.python import keras
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\tensorflow\python\keras\ init__.py", line 27, in
from tensorflow.python.keras import models
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\tensorflow\python\keras\models.py", line 26, in
from tensorflow.python.keras.engine import functional
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\tensorflow\python\keras\engine\functional.py", line 38, in
from tensorflow.python.keras.engine import training as training_lib
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\tensorflow\python\keras\engine\training.py", line 53, in
from tensorflow.python.keras.saving import hdf5_format
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\tensorflow\python\keras\saving\hdf5_format.py", line 41, in
import h5py
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\h5py\ init__.py", line 34, in
from . import version
File "C:\Users\Lenovo\anaconda3\envs\Noor\lib\site-packages\h5py\version.py", line 17, in
from . import h5 as _h5
File "h5py\h5.pyx", line 41, in init h5py.h5
AttributeError: type object 'h5py.h5.H5PYConfig' has no attribute ' reduce_cython__'