For working with pip freeze > needs.txt, make a Digital environment to prevent incorporating unnecessary dependencies and install each of the dependencies while in the Digital atmosphere prior to jogging freeze command.After that put your source code within the directory. In case you run the python file now, most likely it would not launch If you'r