Glam Prestige Journal

Bright entertainment trends with youth appeal.

I try to install scikit-image on Ubuntu 14.04:

pip install -U scikit-image

I get this error:

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 (from ) (d92e68a3277e7d75b472991cfc6806a0) doesn't match the expected hash 9a2118cc4d18c038a7d22e3ce0141309! Bad md5 hash for package (from )

I run again the above command, but I get this error over and over:

Collecting scikit-image Using cached scikit-image-0.11.2.tar.gz Hash of the package (from ) (d92e68a3277e7d75b472991cfc6806a0) doesn't match the expected hash 9a2118cc4d18c038a7d22e3ce0141309! Bad md5 hash for package (from )
begueradj@begueradj-Sampo:~$ 

1 Answer

Removing Pip cache

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

Or just run pip without using the cache:

  • --no-cache-dir

Source

Bad Pip?

  1. Which version of pip are you running?
    • pip --version
    • pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)
  2. Upgrade pip
    • sudo pip install --upgrade pip

Bad Internet/MitM?

I've just downloaded the file and verified:

9a2118cc4d18c038a7d22e3ce0141309 scikit-image-0.11.2.tar.gz

Which means you didn't download the complete file, the correct file, or something is specifically injecting a bad file.

4

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy