2016-01-23 33 views
0

我在我的Windows 7機器上安裝了2個版本的python(2.7.11和3.4.4)。升級和使用pip2和pip3

當我使用:

python -m pip install --upgrade pip 

我收到以下錯誤:

Hash of the package https://pypi.python.org/packages/py2.py3/p/pip/pip-8.0.2-py2.py3-none-any.whl#md5=2056f553d5b593d3a970296f229c1b79(fromhttps://pypi.python.org/simple/pip/)(64b61606117b334f0ec6fcb63d8e4fa7) doesn't match the expected hash 2056f553d5b593d3a970296f229c1b79!Bad md5 hash for package https://pypi.python.org/packages/py2.py3/p/pip/pip-8.0.2-py2.py3-none-any.whl#md5=2056f553d5b593d3a970296f229c1b79 (from https://pypi.python.org/simple/pip/)

,或者當我想pip2 install cython上安裝的2.7版本用Cy​​thon,告訴我這一點:

Hash of the package https://pypi.python.org/packages/2.7/C/Cython/Cython-0.23.4-cp27-none-win32.whl#md5=9bbeca3a08f62804229c807f5ec99d2b (from https://pypi.python.org/simple/cython/) (43077163dafe55831fef3ec713aa7846) doesn't match the expected hash 9bbeca3a08f62804229c807f5ec99d2b!Bad md5 hash for package https://pypi.python.org/packages/2.7/C/Cython/Cython-0.23.4-cp27-none-win32.whl#md5=9bbeca3a08f62804229c807f5ec99d2b (from https://pypi.python.org/simple/cython/)

但是,我在使用pip3 install cython的3.4.4版本上安裝cython時沒有問題。

以上錯誤是什麼意思?我怎樣才能升級我的點子(pip2和pip3)?

+0

你可以試試'PIP安裝--upgrade --no使用輪pip' –

回答

0

有可能幫助選項,

--no-use-wheel

Do not Find and prefer wheel archives when searching indexes and find-links locations.