0
$ pip install Pillow
Error: 'pip' is not recognized as an internal or external command,
operable program or batch file.

I'm doing this in the command prompt on windows.

dprogm
  • 9
  • 2

3 Answers3

0

Official documentation for installing pip can be found here.

In short, you can download get-pip.py from here (right-click the link and then choose Save link as...). Then you can navigate in the command prompt to the directory you downloaded get-pip.py to.

Once you've done that, you can install pip for just your user with

python get-pip.py --user

If you want to install pip system-wide, you need to use an Administrator command prompt, and run

python get-pip.py

Then you can install Pillow with

python -m pip install Pillow
Shane Bishop
  • 3,905
  • 4
  • 17
  • 47
0

You need to install pip, to be able to download packages.

Installing pip

Pip is the package installer for Python and is required to install Python Packages.

  1. If you are using Python 3.4 onwards, then pip should come pre-installed.
  2. If you are using a version of Python 3 older than Python 3.4, then the official pip install instructions can be found here
  • Note: you can find out what version of Python you are running by typing python --version in the terminal
  • To check if pip is installed, run pip help in the terminal.

Installing the pillow package

Once you have pip installed, you can now install the pillow package. This is as simple as typing pip install pillow into your terminal.

Once you've done this, you will successfully have the pillow package installed for Python.

Jack Morgan
  • 317
  • 1
  • 14
0

First run:

python

if it says that it can't recognize the command, it means you haven't installed python properly on your system. Install it using this guide

If python is installed, run this to install pip:

sudo apt-get install python-pip

Finally, try installing pillow again. It will probably work now.

k33da_the_bug
  • 812
  • 8
  • 16