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
.
Cet exercice fait partie du cours
Developing Python Packages
Exercice interactif pratique
Passez de la théorie à la pratique avec l’un de nos exercices interactifs
