Hash md5 inválido para o pacote https://pypi.python.org/packages/source/s/scikit-image/scikit-image-0.11.2.tar.gz

4

Eu tento instalar o scikit-image no Ubuntu 14.04:

pip install -U scikit-image

Eu recebo este erro:

Collecting scikit-image
  Downloading scikit-image-0.11.2.tar.gz (18.6MB)
    34% |###########                     | 6.5MB 83kB/s eta 0:02:25
  Hash of the package https://pypi.python.org/packages/source/s/scikit-image/scikit-image-0.11.2.tar.gz#md5=9a2118cc4d18c038a7d22e3ce0141309 (from https://pypi.python.org/simple/scikit-image/) (d92e68a3277e7d75b472991cfc6806a0) doesn't match the expected hash 9a2118cc4d18c038a7d22e3ce0141309!
  Bad md5 hash for package https://pypi.python.org/packages/source/s/scikit-image/scikit-image-0.11.2.tar.gz#md5=9a2118cc4d18c038a7d22e3ce0141309 (from https://pypi.python.org/simple/scikit-image/)

Eu corro novamente o comando acima, mas recebo esse erro várias vezes:

Collecting scikit-image
  Using cached scikit-image-0.11.2.tar.gz
  Hash of the package https://pypi.python.org/packages/source/s/scikit-image/scikit-image-0.11.2.tar.gz#md5=9a2118cc4d18c038a7d22e3ce0141309 (from https://pypi.python.org/simple/scikit-image/) (d92e68a3277e7d75b472991cfc6806a0) doesn't match the expected hash 9a2118cc4d18c038a7d22e3ce0141309!
  Bad md5 hash for package https://pypi.python.org/packages/source/s/scikit-image/scikit-image-0.11.2.tar.gz#md5=9a2118cc4d18c038a7d22e3ce0141309 (from https://pypi.python.org/simple/scikit-image/)
begueradj@begueradj-Sampo:~$ 
    
por muru 20.03.2015 / 22:17

1 resposta

4

Removendo o cache do Pip

  • rm -rf ~/.pip/cache/
  • sudo rm -rf /root/.pip/cache

Ou apenas execute pip sem usar o cache:

  • --no-cache-dir

Fonte

Bad Pip?

  1. Qual versão de pip você está executando?
    • pip --version
    • pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)
  2. Atualizar pip
    • sudo pip install --upgrade pip

Internet ruim / MitM?

Acabei de fazer o download do arquivo e verifiquei:

9a2118cc4d18c038a7d22e3ce0141309  scikit-image-0.11.2.tar.gz

O que significa que você não baixou o arquivo completo, o arquivo correto ou algo especificamente está injetando um arquivo incorreto.

    
por earthmeLon 20.03.2015 / 22:28