ImportError: bad magic number in 'time': b'\x03\xf3\r\n' in Django
Delete the .pyc files created in your directory .'
ex : i have gitlab.py and gitlab.pyc
later i renamed it into gitlab-api.py
But while running python file , it is using gitlab.pyc so

Traceback (most recent call last):
File "gitlab-api.py", line 1, in 
import gitlab
ImportError: bad magic number in 'gitlab': b'\x03\xf3\r\n'

it worked correctly when i deleted the gitlab.pyc
I got this error while running the Django app file that I had downloaded from GitHub. How can I solve this problem?