【发布时间】:2018-06-10 19:54:37
【问题描述】:
任何与 pypi 联系的 pip 命令在 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
挂起约 1-2 分钟(至少)。
使用选项--index-url=http://pypi.python.org/simple/ 可以大大加快速度,但似乎并不理想,因为它会跳过加密。有什么解决方法吗?
【问题讨论】:
标签: python-3.x pip ipv6