python

Pip freeze requirements.txt is not working

This are my imports:
import io
import pandas as pd
from collections import Counter
import matplotlib.pyplot as plt
import glob
from collections import defaultdict
import re

But my requirements.txt only returns:
pandas~=1.2.0
matplotlib~=3…