{"id":12958,"date":"2021-09-09T14:12:24","date_gmt":"2021-09-09T21:12:24","guid":{"rendered":"https:\/\/www.vernier.com\/til\/?p=12958"},"modified":"2022-10-21T08:37:23","modified_gmt":"2022-10-21T15:37:23","slug":"how-to-make-stand-alone-app-with-pyinstaller","status":"publish","type":"post","link":"https:\/\/www.vernier.com\/til\/12958","title":{"rendered":"Can I make a stand-alone app from my Python program?"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Yes, we have created stand-alone apps from Python programs using pyinstaller. Install <strong><a href=\"https:\/\/pyinstaller.org\/en\/stable\/\">pyinstaller<\/a><\/strong> using pip with the following terminal command:<\/p>\n<p class=\"wp-block-paragraph\"> pip3 install pyinstaller<\/p>\n<p class=\"wp-block-paragraph\">Locate the file you want to make into an app (make sure it is working with Idle; remember the gdx folder has to be there.)<br \/><strong>Change to the directory where the program to be converted resides. <\/strong>This will probably require the use of these terminal commands:<\/p>\n<p class=\"wp-block-paragraph\">cd     to add to the location remember you can check what is in the directory by using<br \/>ls       list (short) directory contentsls-<br \/>l s-l     list (long) directory contents<br \/>ls -a    list including hidden files<br \/>cd ~   Home directory<br \/>cd\/    root of drive<br \/>pwd    path of working directory<br \/>.    current folder<br \/>..    parent directory<\/p>\n<p class=\"wp-block-paragraph\"><strong>Run the Terminal comment to make the Python program into a single file:<\/strong> Use this format: (this is for the file gdx_getting_started_bluetooth.py)<\/p>\n<p class=\"wp-block-paragraph\">pyinstaller &#8211;onefile&nbsp; gdx_getting_started_bluetooth.py<\/p>\n<p class=\"wp-block-paragraph\">The file will be the Dist folder, which is in the same folder as the original Python program. The executable will have the same name, but no extension.<\/p>\n<p class=\"wp-block-paragraph\"><a href=\"\/til\/16133\/\">Coding with Vernier Sensors and Python - Troubleshooting and FAQs<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Yes, we have created stand-alone apps from Python programs using pyinstaller. Install pyinstaller using pip with the following terminal command: pip3 install pyinstaller Locate the&#8230;<\/p>\n","protected":false},"author":9585,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[6958,7594,7179],"class_list":["post-12958","post","type-post","status-publish","format-standard","hentry","tag-coding","tag-pyinstaller","tag-python"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/12958","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/users\/9585"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/comments?post=12958"}],"version-history":[{"count":0,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/12958\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/media?parent=12958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/categories?post=12958"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/tags?post=12958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}