Any sort of pip command that contacts pypi is running extremely slow on Ubuntu 18.04.
$ pip install -v pandas
Created temporary directory: /tmp/pip-ephem-wheel-cache-hvbcg1k_
Created temporary directory: /tmp/pip-install-7_spppvw
Collecting pandas
1 location(s) to search for versions of pandas:
* https://pypi.org/simple/pandas/
Getting page https://pypi.org/simple/pandas/
Looking up "https://pypi.org/simple/pandas/" in the cache
Current age based on date: 324440
Freshness lifetime from max-age: 600
Freshness lifetime from request max-age: 600
Starting new HTTPS connection (1): pypi.org
Which hangs for ~1-2 minutes (at least).
Using the option --index-url=http://pypi.python.org/simple/
speeds it up a lot, but doesn't seem to be ideal because it skips encryption. Is there any workaround for this?