Is it on some external HDD? try to reinstall python to different drive and location.
Also you can try to check if file is locked by some other process via PowerShell:
if ((Test-Path -Path $FileOrFolderPath) -eq $false) { Write-Warning "File or directory does not exist." } else { $LockingProcess = CMD /C "openfiles /query /fo table | find /I ""$FileOrFolderPath""" Write-Host $LockingProcess }