![]() ![]() The obtained executable file can run on the windows platform and it contains all the packages needed to run the python program. This problem can be solved when we convert the python script file (.py) to an executable file (.exe). $ pip install -r requirements.txtīut what if, the developer doesn’t want to share the requirenments.txt file and still wants to run that developed application on another machine. This command should be executed on the machine where the python packages are to be installed to run the shared. $ pip freeze > requirements.txt Install Packages from Requirements.txt file This command should be executed in the development environment of the python developer. One easy way to install all the packages is to use the requirements.txt file which has all the list of installed packages needed for that python program to run. When we share our python file to another machine, for that python program to run on that machine the same packages should be present. Those installed packages are present in our development environment. While developing in python, we install many packages and use them in our program.
0 Comments
Leave a Reply. |