#๐Ÿ”’ How do i share projects i make with friends

186 messages ยท Page 1 of 1 (latest)

ancient spoke
hollow vaporBOT
#

@ancient spoke

Python help channel opened

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.

ancient spoke
coral shore
ancient spoke
#

like can i make it a download that opens it up?

#

like a file

pulsar whale
#

make a exe

coral shore
#

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.

ancient spoke
#

hmmm...

coral shore
#

Also, it won't hide the code. They'll still be able to see it if they really want to.

latent trench
#

try auto-py-to-exe has a gui , and uses pyinstaller

ancient spoke
#

i see

#

so i have the Pyinstaller file now

#

how do i use it to turn it into what i was saying

modern burrow
latent trench
#

you just check the boxes and adds the -- command

ancient spoke
#

what now

latent trench
#

open cmd

#

typepyinstaller --version

ancient spoke
#

it immediately closes

#

could i use my terminal

latent trench
#

yes

ancient spoke
latent trench
#

try installing pip install auto-py-to-exe

ancient spoke
#

its downloading

latent trench
#

now run auto-py-to-exe

ancient spoke
latent trench
#

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

ancient spoke
#

how do i make the code i made into a file

#

it isnt anywhere yet

latent trench
#

ohh

#

create a new folder

#

and copy first the code

#

then open the folder you just created

ancient spoke
latent trench
#

and create new file by clicking

ancient spoke
#

oh

latent trench
#

than paste the code into that file you created

ancient spoke
#

does this work

#

do i make it a .py

latent trench
#

open this folder in the visual studio code

ancient spoke
#

???

ancient spoke
ancient spoke
latent trench
#

now

#

what you do is create a new file with a .py at the end

ancient spoke
#

ohh

latent trench
#

not txt

ancient spoke
#

ok

#

how do i do that, like do i do it in vs code?

#

oh i see it

#

in vs code

latent trench
ancient spoke
#

above the txt file

latent trench
#

go to that image

ancient spoke
#

made it

#

do i put the code in it now?

latent trench
#

now paste the code

ancient spoke
#

alr did it

latent trench
#

now go to the bar top left

#

and check terminal

#

and make a new terminal

ancient spoke
#

bar top left?

latent trench
#

yes

ancient spoke
#

is this it?

latent trench
#

yes now run python Project1.py

#

does it work

ancient spoke
#

i put it in the terminal

#

no

latent trench
#

?\

ancient spoke
#

or like the file itself?

latent trench
#

writ on terminal

ancient spoke
latent trench
#

hm

#

smth wrong with ur code then

ancient spoke
#

nvm

#

it works

latent trench
#

okay ctrl + c to force stop it

#

and run auto-py-to-exe

#

the one youve made

ancient spoke
#

its doing it

#

converting to .py

latent trench
#

did you click one file

#

if you ddi one directory then it will create a folder

#

the output is on the settings menu

ancient spoke
#

its done

#

thank you

latent trench
#

does it work ?

ancient spoke
#

yep

latent trench
#

double clcik it

ancient spoke
#

ik

#

it works

#

thank you\

#

!resolve

latent trench
#

๐Ÿ‘

ancient spoke
#

or how do i close this

latent trench
#

.!close

ancient spoke
#

i could come back to this if i forget tho

latent trench
#

dont close it then

ancient spoke
#

ill keep it open

latent trench
#

oh u mean in future

#

but it will get closed once its not active

#

but you can allways search for it using the title

ancient spoke
#

why does it share to my friend like this

latent trench
#

did you share the .exe?

#

you shared the py

ancient spoke
#

.exe?

#

how do i share that

latent trench
#

bruh that was the .py

ancient spoke
#

oop

#

ok

latent trench
#

send me pic how it looks like

#

inside output

#

folder

ancient spoke
latent trench
#

did you click the onefile ? or the one directory

#

when u ran the auto-py-to-exe

ancient spoke
#

ill just try it again

#

changing it

#

what happened to it

latent trench
#

do you have a .exe

#

somewhere ?

#

named Project1.exe probably

ancient spoke
#

no ill just restart by creating a new folder and putting the code in a new file

latent trench
#

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

ancient spoke
#

is this exe?

latent trench
#

clcik on output

#

double click

ancient spoke
#

atp

#

do i make a new folder

latent trench
#

click project1

ancient spoke
latent trench
#

wtf is goin on wait let me try it

ancient spoke
#

here

latent trench
#

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

ancient spoke
#

llet lemme check

#

WE ARE SO UP

latent trench
#

bro

#

smth not good

ancient spoke
#

it works

#

i opened it

latent trench
#

can you

#

do this for me

#

idk if that file is .exe or .py

latent trench
ancient spoke
#

lemme check

#

its.exe

violet fern
hollow vaporBOT
#
Python help channel closed for inactivity

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.