I want to import these libraries on the backend TensorFlow, but appears this error:
from nltk.corpus import stopwords
from numpy import array
from tensorflow.keras.preprocessing.text import one_hot
from tensorflow.keras.preprocessing.sequence import pad_sequences
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers.core import Activation, Dropout, Dense
from tensorflow.keras.layers import Flatten
from tensorflow.keras.layers import GlobalMaxPooling1D
from tensorflow.keras.layers.embeddings import Embedding
from tensorflow.sklearn.model_selection import train_test_split
from tensorflow.keras.preprocessing.text import Tokenizer
Error: Using TensorFlow backend.
ERROR:root:Internal Python error in the inspect module.
Below is the traceback from this internal error.
~.condaenvsensorflowlibsite-packagesensorflow_corepythonpywrap_tensorflow.py in <module>
57
---> 58 from tensorflow.python.pywrap_tensorflow_internal import *
59 from tensorflow.python.pywrap_tensorflow_internal import __version__
~.condaenvsensorflowlibsite-packagesensorflow_corepythonpywrap_tensorflow_internal.py in <module>
27 return _mod
---> 28 _pywrap_tensorflow_internal = swig_import_helper()
29 del swig_import_helper
~.condaenvsensorflowlibsite-packagesIPythoncoreultratb.py in structured_traceback(self, etype, evalue, etb, tb_offset, number_of_lines_of_context)
1148 exception = self.get_parts_of_chained_exception(evalue)
1149 if exception:
-> 1150 formatted_exceptions += self.prepare_chained_exception_message(evalue.__cause__)
1151 etype, evalue, etb = exception
1152 else:
TypeError: must be str, not list```
question from:
https://stackoverflow.com/questions/66055584/using-tensorflow-backend-errorrootinternal-python-error-in-the-inspect-module 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…