#๐ How do i share projects i make with friends
186 messages ยท Page 1 of 1 (latest)
@ancient spoke
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Share, as in allow them to run the code? You could just send them the link you posted here, or you could upload the code to github
make a exe
Look into Pyinstaller. Note though, for a script as small as this, it might not be worth the effort. Bundling a script into an EXE has some large downsides, like the fact that the resulting file is massive, and will likely trigger their antivirus.
hmmm...
Also, it won't hide the code. They'll still be able to see it if they really want to.
try auto-py-to-exe has a gui , and uses pyinstaller
i see
so i have the Pyinstaller file now
how do i use it to turn it into what i was saying
so it got all the same downsides as pyinstaller
its just a gui
you just check the boxes and adds the -- command
yes
try installing pip install auto-py-to-exe
now run auto-py-to-exe
now put your file .py in there
click the browse
then do one file i would say
you can then add icon if you want
where is this code https://paste.pythondiscord.com/3MQA
ohh
create a new folder
and copy first the code
then open the folder you just created
copy my code into the folder?
and create new file by clicking
oh
than paste the code into that file you created
open this folder in the visual studio code
also what first code
also where is create new file
ohh
not txt
this one
above the txt file
go to that image
now paste the code
alr did it
bar top left?
is this it?
?\
or like the file itself?
writ on terminal
okay ctrl + c to force stop it
and run auto-py-to-exe
then click browse and select project1.py
the one youve made
did you click one file
if you ddi one directory then it will create a folder
the output is on the settings menu
does it work ?
double clcik it
๐
or how do i close this
.!close
i could come back to this if i forget tho
dont close it then
ill keep it open
oh u mean in future
but it will get closed once its not active
but you can allways search for it using the title
no ill just restart by creating a new folder and putting the code in a new file
python project1retry.py
you have to run auto-py-to-exe
then broswe the file you want to turn to exe
click one file
and then you good to convert
click project1
wtf is goin on wait let me try it
wait
go to settings dropdown and go to the directory it shows
this is where your output is saved
you should have already a Project1.exe
.
You can see the type in the list
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.