FYI. We had a couple Tableau Desktop users that could not connect to Tableau server to publish. We couldn't figure out what the problem was, nor could Tableau tech support. Turns out they had declared two environment variables, http_proxy and https_proxy, in a python script and those were interfering with Tableau. After deleting/renaming those variables in the script they could publish just fine.
thanks! This is a useful tip.