Python script connecting to Snowflake is not working with error Unable to open a browser in this environment

I am dockerizing a python script connecting to snowflake. But its not working as for connecting to Snowflake we need to do authentication through a browser and I am getting error “Unable to open a browser in this environment”

Please let me know if anyone can help me here.