+ 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?
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.
+ 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.
+ 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.
+ 2
Well yeah, IDE.
Editor allows you to edit codes and usually, run them as wel, making up an Interactive Development Environment.
+ 1
Thanks. When you say "your friend needs an editor" is that the same as an IDE? What do you mean by editor?
+ 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?
+ 1
Could you write windows apps or android apps in python? Are apps generally made from several different scripts in multiple programming languages?
+ 1
You can definitely use pyinstaller or something similar.
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
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.
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
0
Hey,
You can use pyinstaller or py2exe to create an executable file and send it to your friend.