DateTime сейчас нет атрибута
#You probably have
import datetime
#change that to
from datetime import datetime
Faithful Fox
#You probably have
import datetime
#change that to
from datetime import datetime
import datetime
print(datetime.__file__)