PIL (Pillow) module install issue

Viewed 328

I have been attempting to install the Pillow (PIL) module into my python(3.8.2) using Windows 10 to no success.

I have tried executing pip install Pillow as mentioned by the website in my cmd but both pip and python are 'not recognised as an internal or external command, operable program or batch file'

What I have tried:

Reinstalled both pip and python and tried again, with the same problem.

Using powershell instead of command prompt (not sure if that makes any difference).

Also I understand you can download the Pillow module package in .whl, but I couldn't work out how to install it that way.

I have also installed pygame using the cmd before which baffles me as to why this is happening.

Any and all help is appreciated, Thank you!

2 Answers

If you're sure that you've successfully installed python, but it's not working on your commandline, it may not be in your PATH. Open the search in the windows start menu, and type "env" and click on "Edit Environmental Variables for your system (or choose account if you don't have admin on the system). If you chose system, click on the environmental variables button. You will then be greeted by one window split into two menus, User Variables and System Variables. Scroll down in the User variables and double click on Path.

Go find the location of your python install with the python.exe file in it (you could search for it in your C:\ if you're willing to wait). Add that path to the Path variable list.

If you can't find the python.exe or just don't want to wait, reinstall your python installation and look for a checkbox with "Add to Path" or something along those lines.

In addition to the python.exe being in your path, make sure to add the "Scripts" folder in your path. It should be a subfolder in the same folder as python.exe.

For windows 10 install PIL and cImage.

Download and install cImage

  • Navigate to https://github.com/bnmnetp/cImage
  • Click cImage.py, and click the button labeled Raw to see the contents of the file.
  • Click File > Save Page As (Chrome & Firefox) or File > Save As (Safari) to save the file on your computer.
  • Copy “cImage.py” from where you saved it to C:\Python27\Lib\site-packages and C:\Python34\Lib\site-packages\
Related