AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
I am doing a project in python but i have noticed that i am suddenly getting this error out of the blue
F:\python\Ai\Jarvis>C:/Users/Admin/AppData/Local/Programs/Python/Python39/python.exe f:/python/Ai/Jarvis/main.py
Error processing line 1 of C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\distutils-precedence.pth:
Traceback (most recent call last):
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site.py", line 169, in addpackage
exec(line)
File "", line 1, in
AttributeError: module '_distutils_hack' has no attribute 'ensure_shim'
Remainder of file ignored
Please help