When i try to install python imaging Library using cmd: sudo pip install --upgrade Pillow, cpu usage goes above 99% and my pi Shutdowns suddenly and restarts again, so i am unable to install library, how to resolve the issue i am using raspbian jessie os.

  • The model of Pi and how you are powering it would be useful to know. – Darth Vader Feb 15 '17 at 7:44
  • I am using Raspberry pi-3 model & using 5v normal charger, there was no issues till now only when installing Pillow this happens. – Abhilash K Feb 15 '17 at 8:33
  • while installing cpu processing % becomes high and it reboots. – Abhilash K Feb 15 '17 at 8:35
  1. Get a better power supply. It is not supplying enough power when the Pi is busy which is causing the reboot.
  2. What is this fixation with pip about with Python programmers? You should always use the packages provided in the repositories as they will have been tested to be compatible with the rest of the system. Try sudo apt-get install python-pil python3-pil
  • The raspberrypi.org docs do recommend pip over apt-get for more recently updated packages: 'Not all Python packages are available in the Raspbian archives, and those that are can sometimes be out-of-date. If you can't find a suitable version in the Raspbian archives, you can install packages from the Python Package Index (PyPI).' – goobering Feb 15 '17 at 9:59
  • @goobering Even though the advice may be accurate I still think it is bad advice from raspberrypi.org. It seems to lead to broken installs. – joan Feb 15 '17 at 10:17
  • @joan thanks for your advice i have solved it by changing to better power supply – Abhilash K Feb 15 '17 at 10:19
  • While I understand your rationale for 2) using pip is not only recommended by raspberrypi.org but is essentialy the default advice in all books and tutorials (the pythonic way) - which is why people will think of this first most of the time. But you're right going for the repository will usually result in working system. – Ghanima Feb 16 '17 at 9:31

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.