1. 程式人生 > >yolo的訓練和測試過程中踩過的坑

yolo的訓練和測試過程中踩過的坑

1.執行main.py,報錯:SyntaxError: Missing parentheses in call to 'print'

錯誤原因:因為安裝的是python3的版本 但是這個程式是2.7的版本

2.ImportError: No module named 'Tkinter'

3.ImportError: No module named 'ConfigParser'

Resolve Method:

I found the problem. I had manually installed a newer version ofpython(version  3.2 but the version installed through packages is 2.7) and I just redirected/usr/bin/python

topython3.2.  Apparently in 3.2 some syntax used in/usr/bin/pycleanis  not valid anymore. Restoring the original link of/usr/bin/pythonto/usr/bin/python2solved  the problem. Now the scripts could be run without any issues.