101donutman
101donutman

Reputation: 80

Is it required for you to put the preinstalled libraries of python in requirements.txt(Such as NumPy, math, etc.)?

I want to know for my project if I need to include the core python libraries into the requirements file if I am using them in my project. This is for Travis CI build system, and I am trying to build the project, and it uses Numpy, and math.

Upvotes: 1

Views: 885

Answers (1)

Wayne Lambert
Wayne Lambert

Reputation: 606

Any modules that are part of Python’s standard library such as math, os, sys, etc do not need to be listed in your requirements.txt file.

Any third party libraries that you include within your project using pip install ______ will need to be added.

You can find a list of standard modules included within core Python at this link.

You can also enter the following command within a Python interpreter session to see them listed in your terminal.

>>> help('modules')

Upvotes: 1

Related Questions