math is a built in library for python. You don't need to install it. Just remove it from requirements.txt.
If you are having a similar problem importing other Python modules in a Docker image using the requirements.txt file, make sure it is not one of Python's many, many other built-in functions. The complete list is here:
https://docs.python.org/3.8/py-modindex.html
(Select the appropriate version from the dropdown menu at the top of the page.)
Answer from Code-Apprentice on Stack Overflow
» pip install python-math
math is a built in library for python. You don't need to install it. Just remove it from requirements.txt.
If you are having a similar problem importing other Python modules in a Docker image using the requirements.txt file, make sure it is not one of Python's many, many other built-in functions. The complete list is here:
https://docs.python.org/3.8/py-modindex.html
(Select the appropriate version from the dropdown menu at the top of the page.)
math, along with Python's many, many other built-in modules, should not be included in the requirements.txt file. Delete that line from the file.
The complete list of built-in modules (i.e. modules which shouldn't be in requirements.txt) is here:
https://docs.python.org/3.8/py-modindex.html
(Be sure to select your Python version from the dropdown menu at the top of the page.)
This post applies when creating a Docker image, such as with Binder from a GitHub repository. It does not apply when importing modules in a Python script.
Videos
» pip install maths
» pip install math-module
» pip install mathutils