Installing Python packages
Now that you have ensured that Python is installed correctly, we will install some popular Python packages that will be used over the course of this book.
We will be installing these packages system-wide but, once they are installed, we will be working exclusively in virtual environments.
Installing pip
The de-facto Python package installer is pip
. We will use it throughout the book to install Flask and other third-party libraries.
If you already have setuptools
installed, you can install pip
by simply running the following command:
$ sudo easy_install pip
After completing the installation, verify that pip
is installed correctly:
$ pip --version pip 1.2.1 from /usr/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg (python ...
Get Learning Flask Framework now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.