title: TypeError: name must be a byte string
body: <p>I am attempting to upgrade my tensorflow via conda but am having some issues. I am following the Anaconda installation procedure <a href="https://www.tensorflow.org/install/install_mac#installing_with_anaconda" rel="nofollow noreferrer">here</a>.</p>
  
  <p>I am getting an error when I execute the <code>conda create -n tensorflow</code> command.</p>
  
  <p>Here is the error:</p>
  
  <pre><code>Traceback (most recent call last):
        File "/Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/conda/exceptions.py", line 479, in conda_exception_handler
          return_value = func(*args, **kwargs)
        File "/Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 145, in _main
          exit_code = args.func(args, p)
        File "/Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/conda/cli/main_create.py", line 68, in execute
          install(args, parser, 'create')
        File "/Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/conda/cli/install.py", line 238, in install
          prefix=prefix)
        File "/Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/conda/api.py", line 24, in get_index
          index = fetch_index(channel_urls, use_cache=use_cache, unknown=unknown)
        File "/Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/conda/fetch.py", line 300, in fetch_index
          repodatas = [(u, f.result()) for u, f in zip(urls, futures)]
        File "/Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/concurrent/futures/_base.py", line 403, in result
          return self.__get_result()
        File "/Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/concurrent/futures/thread.py", line 55, in run
          result = self.fn(*self.args, **self.kwargs)
        File "/Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/conda/fetch.py", line 75, in func
          res = f(*args, **kwargs)
        File "/Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/conda/fetch.py", line 117, in fetch_repodata
          timeout=(6.1, 60))
        File "/Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/requests/sessions.py", line 480, in get
          return self.request('GET', url, **kwargs)
        File "/Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/requests/sessions.py", line 468, in request
          resp = self.send(prep, **send_kwargs)
        File "/Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/requests/sessions.py", line 576, in send
          r = adapter.send(request, **kwargs)
        File "/Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/requests/adapters.py", line 376, in send
          timeout=timeout
        File "/Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 559, in urlopen
          body=body, headers=headers)
        File "/Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 345, in _make_request
          self._validate_conn(conn)
        File "/Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 784, in _validate_conn
          conn.connect()
        File "/Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/requests/packages/urllib3/connection.py", line 252, in connect
          ssl_version=resolved_ssl_version)
        File "/Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 296, in ssl_wrap_socket
          cnx.set_tlsext_host_name(server_hostname)
        File "/Users/madhavthaker/Downloads/anaconda/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1232, in set_tlsext_host_name
          raise TypeError("name must be a byte string")
      TypeError: name must be a byte string
  </code></pre>
  
  <p>I'm done some googling and haven't been able to find a useful response. Any help would be much appreciated. </p>