'How can I import thread package in Python 3?

I want to import thread package in Python 3.6. But this error is occurred:

import thread
ModuleNotFoundError: No module named 'thread'


Solution 1:[1]

Change it to import threading.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 philoez98