2
我想用PyPi镜像(我们的公司镜像)加速下载Python包,但是pip无法从镜像中选择正确的iPython版本。我猜这个问题可能与PyPi索引数据库有关系。如果有人知道这个问题,欢迎告诉我。用PyPi镜像安装IPython用pip
Python版本:
(p2) ➜ /tmp python --version
Python 2.7.13
这里是我的〜/将该.pip/pip.conf
[global]
index-url = http://mirrors.company.com/pypi/simple/
trusted-host=mirrors.company.com
以下错误消息是打印,当我用pip install ipython
(p2) ➜ /tmp pip install ipython
Collecting ipython
Downloading http://mirrors.aliyun.com/pypi/packages/79/63/b671fc2bf0051739e87a7478a207bbeb45cfae3c328d38ccdd063d9e0074/ipython-6.1.0.tar.gz (5.1MB)
100% |████████████████████████████████| 5.1MB 7.6MB/s
Complete output from command python setup.py egg_info:
IPython 6.0+ does not support Python 2.6, 2.7, 3.0, 3.1, or 3.2.
When using Python 2.7, please install IPython 5.x LTS Long Term Support version.
Beginning with IPython 6.0, Python 3.3 and above is required.
See IPython `README.rst` file for more information:
https://github.com/ipython/ipython/blob/master/README.rst
Python sys.version_info(major=2, minor=7, micro=13, releaselevel='final', serial=0) detected.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/6c/gbrkbbzd4gvdp56x7x8s6xpw0000gn/T/pip-build-FVITyR/ipython/
谢谢,我会联系的人。 – runitao