+ 2

How do I send my Python program to a friend, in a file he'll be able to open on a windows PC?

I made a simple mad libs program that I want to share with my brother and friends. I wrote it in Pycharm and saved the .py file to my desktop. Their computers won't be able to interpret that file, since they don't have python installed, will they? how do I send them a simple program I wrote in python that their PC can run even though they haven't downloaded python. Is there a simple way to convert it into a .exe file?

11th Sep 2018, 8:44 AM
Dustin James Stewart
Dustin James Stewart - avatar
12 Answers
+ 2
I think you'll have to send the code as an attachment or copy the text. Your friend needs an editor to run the code. No other way out.
11th Sep 2018, 8:53 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 11
Dustin James Stewart does it run here in our playground? If so you can select share and send it they will need to click run but it usually works as a great way to share codes.
11th Sep 2018, 11:41 AM
bobbie
bobbie - avatar
+ 5
Dustin James Stewart No that is a ranking symbol. It relates to my XP. I have been a moderator, but not now. No way to DM through SL though, you could use other platforms like Discord.
11th Sep 2018, 9:07 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
Well yeah, IDE. Editor allows you to edit codes and usually, run them as wel, making up an Interactive Development Environment.
11th Sep 2018, 8:58 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 1
Thanks. When you say "your friend needs an editor" is that the same as an IDE? What do you mean by editor?
11th Sep 2018, 8:56 AM
Dustin James Stewart
Dustin James Stewart - avatar
+ 1
What does the blue star attached to your portrait signify? That you're a moderator? what does it mean to be a moderator? is there a way to directly message people through the SoloLearn app?
11th Sep 2018, 9:01 AM
Dustin James Stewart
Dustin James Stewart - avatar
+ 1
Could you write windows apps or android apps in python? Are apps generally made from several different scripts in multiple programming languages?
11th Sep 2018, 9:03 AM
Dustin James Stewart
Dustin James Stewart - avatar
+ 1
You can definitely use pyinstaller or something similar.
11th Sep 2018, 4:16 PM
Nboumakis
0
Just copy the code into an editor and send it... I bet you won't find any better alternative. Otherwise, they will Ned to install python on their pc
24th Sep 2018, 11:16 AM
kojo Justine
kojo Justine - avatar
0
Save the code as a Jupiter notebook file. .ipynb Save it on your github Use binder.org, with your github link. It will launch a shareable server in Jupiter notebook format if it contains a .ipynb file. Then your friends can interact and even do more. You’ll have a to learn a bit about github repository, requirement file and binder ready repository. I too have learnt it recently, seems a lot, but gets easier.
16th Sep 2020, 11:16 PM
Zorawar Purohit
Zorawar Purohit - avatar
0
you can save the script file as a .txt file and send it . it should still be intact . however if he wants to edit and run the file, he may need to install a python IDE or notepad ++ to allow him run the file
10th Oct 2020, 10:22 PM
kojo Justine
kojo Justine - avatar
0
Hey, You can use pyinstaller or py2exe to create an executable file and send it to your friend.
11th Nov 2020, 7:23 AM
Shubham Tiwari
Shubham Tiwari - avatar