Use requirements.txt | PyCharm Documentation
Define requirements. From the Tools menu, select Sync Python Requirements. In the opened dialog, specify the name of the requirements file. The recommended name for the requirements file is requirements.txt. When a file with this name is added to the root project directory, it is automatically detected by Python …