That error might be due to an internal package. In requirements.txt, list only the packages you need with their versions, without using the pip freeze command.
requirements.txt
pip freeze