bmi-project icon indicating copy to clipboard operation
bmi-project copied to clipboard

Error on executing demo.py

Open abhattachar5 opened this issue 5 years ago • 1 comments

Getting the below error when executing the code:

(base) C:\Users\Administrator\Desktop\Project\bmi-project-master>python demo.py Traceback (most recent call last): File "demo.py", line 8, in from model import get_model File "C:\Users\Administrator\Desktop\Project\bmi-project-master\model.py", line 31 print 'Loaded weights from age classifier' ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Loaded weights from age classifier')?

abhattachar5 avatar Sep 23 '19 18:09 abhattachar5

Are you using python3, if it is, change to python3 print format.Like this: python2 version: print "...." python3 version: print("....")

QuietWoods avatar Dec 17 '19 03:12 QuietWoods