pip install > requirements.txt creates the file itself if it doesn’t exist. If there is this error, the terminal is buggy. Close the IDE and open it again. Everything should work