yolo的訓練和測試過程中踩過的坑
阿新 • • 發佈:2018-12-16
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
python3.2
.
Apparently in 3.2 some syntax used in/usr/bin/pyclean
is
not valid anymore. Restoring the original link of/usr/bin/python
to/usr/bin/python2
solved
the problem. Now the scripts could be run without any issues.