我想使用 PyPi 镜像(我们公司镜像)加速下载 Python 包,但 pip 无法从镜像中选择正确的 iPython 版本。我猜这个问题可能与 PyPi 索引数据库有关。如果有人知道这个问题,欢迎告诉我。
\n\nPython版本:
\n\n(p2) \xe2\x9e\x9c /tmp python --version\nPython 2.7.13\nRun Code Online (Sandbox Code Playgroud)\n\n这是我的 ~/.pip/pip.conf
\n\n[global]\nindex-url = http://mirrors.company.com/pypi/simple/\ntrusted-host=mirrors.company.com\nRun Code Online (Sandbox Code Playgroud)\n\n我使用时打印出以下错误信息pip install ipython
(p2) \xe2\x9e\x9c /tmp pip install ipython\nCollecting ipython\n Downloading http://mirrors.aliyun.com/pypi/packages/79/63/b671fc2bf0051739e87a7478a207bbeb45cfae3c328d38ccdd063d9e0074/ipython-6.1.0.tar.gz (5.1MB)\n 100% |\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88| 5.1MB 7.6MB/s\n Complete output from command python setup.py egg_info:\n\n IPython 6.0+ does not support Python 2.6, 2.7, 3.0, 3.1, or 3.2.\n When using Python 2.7, please install IPython 5.x LTS Long Term Support version.\n Beginning …Run Code Online (Sandbox Code Playgroud)