ImportError: cannot import name 'tokenizer_from_json' from 'tensorflow.python.keras.preprocessing.text'
(/home/software/anaconda3/envs/mydlenv/lib/python3.8/site-packages/tensorflow/python/keras/preprocessing/text.py)
更改keras版本就行,将2.2.0改为2.2.4 [可行方案]
pip install keras==2.2.4
- tokenizer_from_json 39 from preprocessing ImportErrortokenizer_from_json 39 from preprocessing tokenizer_from_json selenium import 39 importerror 39 importerror collections iterable 39 importerror cannot import 39 importerror initialized partially opengl 39 importerror library 39 importerror qt3dcore 3dcore 39 importerror parse_xml cannot collections deprecationwarning 39 from