On windows it happened after installing python with chocolatey Look for windows environment variables and delete PYTHONHOME