pip
pip is the recommended way to install python packages and as such you should be familiar with how to use it to manage packages on your system and in your virtualenvironments. When you are ready to distribute your software for use by others, you will use pip to package your code and distribute it.
Goals/Objectives/Outcomes
- Understand how to install pip on development machine or with a virtual environment
- Understand how to use pip to install packages from code, requirements files, from github or from Wheels
- Understand how to search for packages using pip
- Understand how to list currently installed packages and uninstall packages
- Understand how to force upgrades of packages
- Understand how to set pip config options using a configuration file
- Understand how packages are created with pip and distributed using PyPi
Reference Material
- http://www.dabapps.com/blog/introduction-to-pip-and-virtualenv-python/
- https://packaging.python.org/en/latest/installing.html
- https://www.digitalocean.com/community/tutorials/common-python-tools-using-virtualenv-installing-with-pip-and-managing-packages
- http://www.scotttorborg.com/python-packaging/
- http://dubroy.com/blog/so-you-want-to-install-a-python-package/
Measures of Success
- Participant has demonstrated the ability to work with pip to manage installation of packages in a virtualenvironment using requirements files and manually
- Participant has demonstrated the ability to upgrade packages and install from GitHub
- Participant has reviewed the documentation on how to structure your python project so it can be packaged and distributed with pip and PyPi