So today I did found out that with the release of pip 10.x.x the req package changed its directory and can now be found under pip._internal.r
pip 10.x.x
req
pip._internal.r
with open("requirements.txt") as f: dependencies = [line for line in f if "==" in line] setup( install_requires=dependencies )