User dependencies
Inside any package you develop, you will probably use other packages. This stops you having to rewrite code which has already been optimized for speed and ease of use, like NumPy.
The users of your package will need to have these other packages installed, and have one of the correct versions. If they don't, then your package won't actually work.
In this exercise, you will modify the setup.py
file so that these packages are installed when your package is installed using pip
.
This exercise is part of the course
Developing Python Packages
Exercise instructions
- Add
numpy
version 1.10 or above as a dependency. - Add any version of
pandas
as a dependency.
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
