gaussic / text-classification-cnn-rnn

CNN-RNN中文文本分类,基于TensorFlow
MIT License
4.16k stars 1.47k forks source link

运行 run_cnn.py 出错,直接在pycharm 运行?? #134

Closed flitdu closed 4 years ago

flitdu commented 4 years ago

问题如下: 【pycharm运行】 /anaconda3/bin/python3.7 /Users/..../PycharmProjects/text-classification-cnn-rnn-master/run_cnn.py WARNING:tensorflow:From /anaconda3/lib/python3.7/site-packages/tensorflow/python/compat/compat.py:175: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version. Instructions for updating: non-resource variables are not supported in the long term Traceback (most recent call last): File "/Users/..../PycharmProjects/text-classification-cnn-rnn-master/run_cnn.py", line 189, in raise ValueError("""usage: python run_cnn.py [train / test]""") ValueError: usage: python run_cnn.py [train / test]

Process finished with exit code 1

【Mac终端运行】: File "run_cnn.py", line 13, in import tensorflow.compat.v1 as tf ModuleNotFoundError: No module named 'tensorflow'

lwd45 commented 4 years ago

No module named 'tensorflow'

Yuhehe commented 4 years ago

没导入好吧