Let's begin our journey of images with simple examples. But before going on, let's build our virtual environment.
We will build the virtual environment using the
virtualenv
command and also activate it:chetans-MacBookPro:~ Chetan$ cd book/ch10/ chetans-MacBookPro:ch10 Chetan$ virtualenv ch10 New python executable in ch10/bin/python2.7 Also creating executable in ch10/bin/python Installing setuptools, pip, wheel...done. chetans-MacBookPro:ch10 Chetan$ source ch10/bin/activate (ch10)chetans-MacBookPro:ch10 Chetan$
Nice! So, we now have an independent environment to work on our recipes for this chapter. For the first set of examples, we will use Python's Pillow module. Let's install this module first before going to the recipe. We will use our favorite
python-pip
to install the Pillow module:(ch10)chetans-MacBookPro:ch10 Chetan$ pip install pillow You are using pip version 7.1.0, however version 8.1.2 is available. You should consider upgrading via the 'pip install...