normalize_requirements REQUIREMENTS_SUBSTITUTIONS module-attribute REQUIREMENTS_SUBSTITUTIONS = {'opencv-python=': 'opencv-python-headless='} requirements_txt module-attribute requirements_txt = 'requirements.txt' reqs module-attribute reqs = reqs.replace(old, new)