Geeks, please accept the hero post of 2021 Microsoft x Intel hacking contest>>>
We know that there are some incompatibilities between the two versions of python2 and python3. The introduction of queue in python3 will report this problem
In Python 3, it is introduced as follows:
1 import queue
In Python 2, we should introduce this method:
1 import Queue
For compatibility, it can be written as follows:
1 import sys
2 if sys.version > '3':
3 import queue as Queue
4 else:
5 import Queue
Similar Posts:
- from flask.ext.wtf import Form ModuleNotFoundError: No module named ‘flask.ext’
- Module no base error: no module name pymysql
- Python,NameError: name ‘math’ is not defined
- Under Ubuntu, py2 and PY3 coexist, / usr / bin / Python: no module named virtualenvwrapper error resolution
- ModuleNotFoundError: No module named ‘Cython‘
- ModuleNotFoundError: No module named ‘win32api’
- ImportError: No module named mysql
- No Python interpreter configured for the project
- ‘tensorflow’ has no attribute ‘add’/’neg’/’mul’
- About flitter_ No applicable application records were found. Verify your