queue ImportError in python 3
Another way to avoid version problems is:
import sys
is_py2 = sys.version[0] == '2'
if is_py2:
import Queue as queue
else:
import queue as queue
A kinda standard cross py2-py3 compatible version:
try:
import queue
except ImportError:
import Queue as queue