qqwweee / keras-yolo3

A Keras implementation of YOLOv3 (Tensorflow backend)
MIT License
7.14k stars 3.45k forks source link

import successfully but no module while train.py running #367

Open indeedzcr opened 5 years ago

indeedzcr commented 5 years ago

I am using anaconda, and the env has tf, keras, numpy and other stuff installed... But I confronted a confusion problem~~~When I running train.py, it tells me "no module named keras", which I have already install in the ananconda env very confidently! So I try and the wire things come out~~~

[when I type into python and the module appears], as follows

(yolo_env01) D:\PycharmProjects\keras-yolo3-05>python Python 3.6.8 |Anaconda, Inc.| (default, Feb 21 2019, 18:30:04) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

import keras.backend as K Using TensorFlow backend. import keras exit()

[when I type run train.py(mine almost the same as train.py), it saids no module named keras], as follows

(yolo_env01) D:\PycharmProjects\keras-yolo3-05>train_0310update.py >03130323_log.txt Traceback (most recent call last): File "D:\PycharmProjects\keras-yolo3-05\train_0310update.py", line 6, in import keras.backend as K ModuleNotFoundError: No module named 'keras'

(yolo_env01) D:\PycharmProjects\keras-yolo3-05>

[what is the problem?~~~~it seems it is the problem of the yolo project, but anyone can help?]

bidyutchanda commented 4 years ago

Try running train.py by using python3 command instead of just python.