simple and effective video, but I'm kinda curious if the program will still work if I don't install certain libs when using it's exe in another computer. help is greatly appreciated and again a very nice video, keep up the work.
Hi there. Thanks for the video, it's very useful and well explained. I am having the exact issue you described with antivirus progs. I'm new to Python, so forgive my noobness. If this is not the best way, what is the preferred method to share a script with somebody who does not have python installed on their system like a client or boss ?
@@neptunes9852 thanks ! Does this mean I will have to help set exception for anyone who gets the alert in their antivirus from the exe ? I might just make them all install python. 😂
@@neptunes9852 Install Python and all the modules used in your script manually, and then when you convert the program to exe the pyinstaller will automatically convert everything needed to run the program on other computers who don't have Python.
I was have the same error And the solotion is :You should install the pyinstaller in the path so system can read it... how to do that first you need to know where is pyinstaller package have been installed so you can reinstall package again and copy the link where it have been installed then follow these steps: 1- from search menu search for(edit the system environment)open it 2- click on (environment variables) 3-chose path 4- click on edit 5-click on new and paste the link where pyinstaller is installed it And finnaly try again it will work
When I did this, clicking on the icon ran a terminal, which scripted some stuff really quickly and then it closed. There was no prompt for anything and no qr codes. I wonder if it's because my python code had pyautogui commands, including text entry and clicking?
* If you're building Python by yourself, please rebuild your Python with `--enable-shared` (or, `--enable-framework` on Darwin) 63419 WARNING: stderr: * If you're building Python by yourself, please rebuild your Python with `--enable-shared` (or, `--enable-framework` on Darwin)
pyinstaller : The term 'pyinstaller' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 please help
How to Solve: 'pip' is not recognized as internal or external. 1. My computer > Right Click > Properties 2. Advanced System Configurations 3. Environment Variables 4. Select the "Path" variable and click "Edit" 5. Select "New" and paste the folder path for the python "scripts" folder (In my case, the folder is located in: C:\Users\MC Don Juan\AppData\Local\Programs\Python\Python311\Scripts) 6. After that, click "OK" and "OK" 7. Go to the cmd and type pip install pyinstaller and everything should work correctly now.
: The term 'pyinstaller' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. Can someone help me please I installed pyinstaller on both cmd and terminal
to do this in the newer versions you have to 1) Install python to path and add to environment variables (WEB NOT MICROSOFT) 2) Open cmd 3) Type "cd (your code location)" make sure to remove the parenthesis and quotes 4) Now just follow the video but type the commands in cmd 5) If your game crashes on start, drag all the necessary files such as pictures into the "dist" folder 6) OPTIONAL: add -w after --onefile to have the cmd prompt off 7) Don't call me a nerd thanks
I've got a lot more dependencies. Multiple tkinter windows via button prompts from a single one. Added all the dependencies to the same folder. Still crashes lol
You are a hero, thank you a bunch . I had just commented on a similar video but with an approach towards cmd and I kept on getting errors. Once again nice video
pyinstall: The term 'pyinstall' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. how to fix this?
How to Solve: 'pip' is not recognized as internal or external. 1. My computer > Right Click > Properties 2. Advanced System Configurations 3. Environment Variables 4. Select the "Path" variable and click "Edit" 5. Select "New" and paste the folder path for the python "scripts" folder (In my case, the folder is located in: C:\Users\MC Don Juan\AppData\Local\Programs\Python\Python311\Scripts) 6. After that, click "OK" and "OK" 7. Go to the cmd and type pip install pyinstaller and everything should work correctly now.
Sir I am in class 11 I am learning python program But Whenever I try to open my final file(output), it opens and then closes immediately. I have given the correct file extension (.py) but it doesn't open 😢 Please tell me if you read
I 'm on Windows 11 and I've been trying to turn my python file into an executable file but every time I try to open it it just immediately closes. Am I doing something wrong or does it have to do with the Windows 11?
Try opening CMD, going to the directory the executable is in (cd C:/path/to/folder), and typing the name of the executable. It might be an error, or that you didn't make it wait at the end of execution.
the second command, pyinstaller [file name] --onefile, doesn't work for me. Even after i type the first command, pip install pyinstaller. I keep getting an error saying, "The term 'pyinstaller' is not recognized". Waht do I do?
if you use a hex editor to change the files hexidecimal values then it wont get detected as antivirus' work by checking their database for similar hex strings
pyinstaller: The term 'pyinstaller' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
In Pycharm, if I go to File>>Settings>>My Project Folder>>Python Interpreter, it says I have pip installed. However, if I type "pip install pyinstaller" in the Terminal, it says "pip" is not recognized as an internal or external command. Do you know what I am doing wrong? Edit: I had to fix the path in Environment Variables
@Unkown Make sure you have the path to the scripts of your installed version of python added into Path in your system environment variables (i.e. C:\Users\...\Python\Python310\Scripts ) This solved the problem in my case
@@idanavni_ In the System dialog box, click Advanced system settings. On the Advanced tab of the System Properties dialog box, click Environment Variables. In the System Variables box of the Environment Variables dialog box, scroll to Path and select it.
@@d.bruggink7949 If you are using Windows then you can start by opening the control panel, from there you can access the Advanced System Settings and so on
If you're having a problem with Windows Defender blocking/deleting your exe file, I found that using --onedir instead of --onefile fixed my issue. Would be nice to have it in one exe but this worked for me
How can I use the "pyinstaller .py --onefile" command? It says pyinstaller isn't recognized even tho I installed the package! (I'm using vscode anyways)
Thanks for the info BTW, sometimes python .exe files close immediately, if that happens use this command at the end of the program. input("Press enter to close program")
pyinstaller : The term 'pyinstaller' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. i get this error, any fixes?
Did you try this with VS Code IDE? Even I got the same problem, when I executed with VS code. Again I tried with pycharm, it's working perfect. I think the isuue is with virtual environment for pyinstaller library in VS code.
so what's the industry standard for making executables and apps ? I know the standard workflow with Docker and CD/CI set ups but I believe that's for web apps hosted on the web if I'm not mistaken
If it is not working for you, you have to click the little arrow right by the plus in the terminal, click "command prompt", and then do it again. That fixed it for me.
if u try to install it on different pc, it shows it could be malware and windows try to stop it from running. Is there anyway to make it so windows wont distrub it pls
hold on man what its on youre screen ??? the pyton version i have dont even have a save , its just a blanck screen , i am simply trying to make a hello world that apears from a exe file , can you make a simple video for beginers cause someone that has that on there screen they dont need youre video
hi i have an bug with this when i open the exe its supposed to enter some information but after i press enter or whenever i open the exe and press enter the window closes so i cant get the result which i want i tried modifying to the code so it displays the result in a notepad file but the window closes to fast to even create a notepad file pls help
Hi there, the .exe generated by pyinstaller is getting detected as a virus by windows defender as well as other antivirus softwares and thus I am not able to execute it. Please help
"9795 INFO: Building EXE because EXE-00.toc is non existent 9795 INFO: Building EXE from EXE-00.toc Fatal error: PyInstaller does not include a pre-compiled bootloader for your platform. For more details and instructions how to build the bootloader see"
Good explanation. But you mentioned this is not the production way, since on many computers, it will be flagged as virus. So what would be the “official” way to release a software developed in python?
@@AbishaiSingh licensing your own app is basically giving the app info about who made it, the organisation behind it etc, I unfortunately do not know for certain how it actually works but It would be better if you look online for a better answer.
Why can't people makes simple videos that work like yours?
So gud, thank you maan
if you want to save but don't want the giant cmd window opening every time you run the file just add "--noconsole" after "--onefile"
or -w
or -w
or -w
or -w
or --windowed
simple and effective video, but I'm kinda curious if the program will still work if I don't install certain libs when using it's exe in another computer.
help is greatly appreciated and again a very nice video, keep up the work.
Great straight to the point video. Will that exe work on a different computer?
i just finished my first pythom project : ) I'm so happy!
i love using *pythom*
I thanks by heart. Finally this video after watching a lot of other videos. Thanks a lot Sir.
Man! You have your taskbar on top, this is surreal :)
Short, effective, right on point. Thank you for this video man!
SBU - Simple But Useful tutorial. Marvellous!
The executable file works at a pc without python installed nessesarily,right?
I suggest making this a short so many others can view, but a GREAT video
literally my favourite video ever. thanks
Then what method is using when in terms of production
If I try to open the main.py file it just crashes. Any answers? (thanks in advance)
I'm having the same problem and cant find a solution anywhere :_(
have u found any solution?@@ironpanv2124
Hi there. Thanks for the video, it's very useful and well explained.
I am having the exact issue you described with antivirus progs. I'm new to Python, so forgive my noobness. If this is not the best way, what is the preferred method to share a script with somebody who does not have python installed on their system like a client or boss ?
converting it to exe will skip the installation of python
@@neptunes9852 thanks ! Does this mean I will have to help set exception for anyone who gets the alert in their antivirus from the exe ? I might just make them all install python. 😂
@@kevinstern2490 was thinking same , but yea windows says script files as virus
@@neptunes9852 Install Python and all the modules used in your script manually, and then when you convert the program to exe the pyinstaller will automatically convert everything needed to run the program on other computers who don't have Python.
@@kurdishlearner3168 Can you say In detail
Much easier than using freeze. Freeze you have to put in a lot of parameters to convert into executable.
Hi I faced a problem so when I clicked my executable file it disappeared immediately. I dont know what happen. Can you help plz?
says term pip isnt recognised as a name of a cmdlet, function, script file or operable program
That means pip isn't installed on ur device.
Install pip first by another tutorial
@@varunramakrishnan7676 yeah on windows 🗿
@@yeppiidev Oops
I was have the same error
And the solotion is :You should install the pyinstaller in the path so system can read it...
how to do that first you need to know where is pyinstaller package have been installed so you can reinstall package again and copy the link where it have been installed then follow these steps:
1- from search menu search for(edit the system environment)open it
2- click on (environment variables)
3-chose path
4- click on edit
5-click on new and paste the link where pyinstaller is installed it
And finnaly try again it will work
@@heshamezz9798 make sure your under the correct directory!!!
When I did this, clicking on the icon ran a terminal, which scripted some stuff really quickly and then it closed. There was no prompt for anything and no qr codes. I wonder if it's because my python code had pyautogui commands, including text entry and clicking?
after "--onefile" type "--windowed"
@@Preet_1223 when i do this i have error: RuntimeError: input(): lost sys.stdin . Have you got any solutions? I use Pycharm on win10
have you got the solution?
Worked perfectly sir. Thank you.
I cannot move the file, i have admin permissions, but it says access denied.
User executing the program must also have Python installed. I think 99.9% must have Python installed for the program to run?
Why are python codes not made to be an exe on the desktop, rather for what?
when i type that in there is the error code that pip is not found
I have a problem. At the final stage of my program the .exe shuts down. What can I do?
In your script you need to put at the end something like
input(" ")
with this you gonna have to press a key for it to close
do i need to keep the build or i can directly take the exe and it will run on pc without python installed on it ?
this exe file will only run on computers with python, right?
thank you so much you helped out alot🥰
Very useful, thank you!
it is fast and simple Thank!!
But the problem is that if I want to execute in another laptop it is showing path not spcified
thanks
I am getting error while installing pyinstaller.
Cool
pyinstaller doesnt work for me :(
same
thanx, a lot! 🤝
worked, tysm
Thank you
Ia saying there is no word called pyinstaller
thanks bro!
* If you're building Python by yourself, please rebuild your Python with `--enable-shared` (or, `--enable-framework` on Darwin)
63419 WARNING: stderr: * If you're building Python by yourself, please rebuild your Python with `--enable-shared` (or, `--enable-framework` on Darwin)
Paste that into google
what python version are you using?
Today, I mostly use 3.8, in the video you should be able to see the current version in the bottom right corner of the screen.
Can you zip this and email it?
Why would it be flagged as a virus?
If you do a google on how virus cleanup programs work, you'll understand pretty fast.
I somehow just get told pyinstaller is not a cmdlet of a function. Even tho it is installed
me too it says its installed but then it says its not a cmd
lifesaver thnx
uhm i never get the qr code thing
I’ll just use batch😂
I get an error
Would this work for Mac too?
Exe files are incompatible with Mac OS
Great
pyinstaller : The term 'pyinstaller' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
At line:1 char:1 please help
thank you
How to Solve: 'pip' is not recognized as internal or external.
1. My computer > Right Click > Properties
2. Advanced System Configurations
3. Environment Variables
4. Select the "Path" variable and click "Edit"
5. Select "New" and paste the folder path for the python "scripts" folder
(In my case, the folder is located in: C:\Users\MC Don Juan\AppData\Local\Programs\Python\Python311\Scripts)
6. After that, click "OK" and "OK"
7. Go to the cmd and type pip install pyinstaller and everything should work correctly now.
: The term 'pyinstaller' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
Can someone help me please I installed pyinstaller on both cmd and terminal
Need to add it to your path in advance system settings: environment variables. Chatgpt helped me troubleshoot from there when i ran into this
its kinda late but did you fix it? if so how
@@pincer2885 Check the path where pyinstaller is installed, from there copy that module and both your program and the pyinstaller module in same file
did ya' fix it? i've got the same issue.
to do this in the newer versions you have to
1) Install python to path and add to environment variables (WEB NOT MICROSOFT)
2) Open cmd
3) Type "cd (your code location)" make sure to remove the parenthesis and quotes
4) Now just follow the video but type the commands in cmd
5) If your game crashes on start, drag all the necessary files such as pictures into the "dist" folder
6) OPTIONAL: add -w after --onefile to have the cmd prompt off
7) Don't call me a nerd thanks
I Don't have any necessary files but it still closes.
@aadityanalam7655 idk then you should try reinstalling python
@@kryurt ty, but I've fixed it, i just re-made the code deleting sum extra code and re-formatted it.
@@hackqdd nice
I've got a lot more dependencies. Multiple tkinter windows via button prompts from a single one. Added all the dependencies to the same folder. Still crashes lol
You are a hero, thank you a bunch . I had just commented on a similar video but with an approach towards cmd and I kept on getting errors. Once again nice video
pyinstall: The term 'pyinstall' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again. how to fix this?
what if it says
'pyinstaller' is not recognized as an internal or external command,
operable program or batch file.
How to Solve: 'pip' is not recognized as internal or external.
1. My computer > Right Click > Properties
2. Advanced System Configurations
3. Environment Variables
4. Select the "Path" variable and click "Edit"
5. Select "New" and paste the folder path for the python "scripts" folder
(In my case, the folder is located in: C:\Users\MC Don Juan\AppData\Local\Programs\Python\Python311\Scripts)
6. After that, click "OK" and "OK"
7. Go to the cmd and type pip install pyinstaller and everything should work correctly now.
Sir I am in class 11 I am learning python program But Whenever I try to open my final file(output), it opens and then closes immediately. I have given the correct file extension (.py) but it doesn't open 😢
Please tell me if you read
good exmaple, bummer it outputs literally nothing but a .spec file
I 'm on Windows 11 and I've been trying to turn my python file into an executable file but every time I try to open it it just immediately closes. Am I doing something wrong or does it have to do with the Windows 11?
Try opening CMD, going to the directory the executable is in (cd C:/path/to/folder), and typing the name of the executable. It might be an error, or that you didn't make it wait at the end of execution.
the second command, pyinstaller [file name] --onefile, doesn't work for me. Even after i type the first command, pip install pyinstaller. I keep getting an error saying, "The term 'pyinstaller' is not recognized". Waht do I do?
1st, get good grammer
@@dick_puncher grammar*
Thank you, there's any method to make file save from Windows defender and Windows don't notice as a virus?
I googled some solutions and I'm sure there are!
if you use a hex editor to change the files hexidecimal values then it wont get detected as antivirus' work by checking their database for similar hex strings
This may be too late but you can always add your files as an exclusion in security
pyinstaller: The term 'pyinstaller' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Any help if the dist folder is empty?
Same
In Pycharm, if I go to File>>Settings>>My Project Folder>>Python Interpreter, it says I have pip installed. However, if I type "pip install pyinstaller" in the Terminal, it says "pip" is not recognized as an internal or external command. Do you know what I am doing wrong?
Edit: I had to fix the path in Environment Variables
@Unkown Make sure you have the path to the scripts of your installed version of python added into Path in your system environment variables (i.e. C:\Users\...\Python\Python310\Scripts ) This solved the problem in my case
@@MarkusHelgason how do you do that?
@@idanavni_ In the System dialog box, click Advanced system settings. On the Advanced tab of the System Properties dialog box, click Environment Variables. In the System Variables box of the Environment Variables dialog box, scroll to Path and select it.
@@MarkusHelgason System dialog box of what? How do i get there?
@@d.bruggink7949 If you are using Windows then you can start by opening the control panel, from there you can access the Advanced System Settings and so on
If you're having a problem with Windows Defender blocking/deleting your exe file, I found that using --onedir instead of --onefile fixed my issue. Would be nice to have it in one exe but this worked for me
How can I use the "pyinstaller .py --onefile" command? It says pyinstaller isn't recognized even tho I installed the package! (I'm using vscode anyways)
Same
Thanks for the info BTW, sometimes python .exe files close immediately, if that happens use this command at the end of the program. input("Press enter to close program")
Men, thank you
how to uninstall
It says C:/user/my pc name/the name of file not found help
Short precise and extremely helpful Thanks
when i do the pyinstaller (filename.py) --onefile it says the file is not found
idk either
pyinstaller : The term 'pyinstaller' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
i get this error, any fixes?
Same problem
Did you try this with VS Code IDE? Even I got the same problem, when I executed with VS code. Again I tried with pycharm, it's working perfect. I think the isuue is with virtual environment for pyinstaller library in VS code.
so what's the industry standard for making executables and apps ? I know the standard workflow with Docker and CD/CI set ups but I believe that's for web apps hosted on the web if I'm not mistaken
Thank you so much bro your a life saver
If it is not working for you, you have to click the little arrow right by the plus in the terminal, click "command prompt", and then do it again. That fixed it for me.
if u try to install it on different pc, it shows it could be malware and windows try to stop it from running. Is there anyway to make it so windows wont distrub it pls
hold on man what its on youre screen ??? the pyton version i have dont even have a save , its just a blanck screen , i am simply trying to make a hello world that apears from a exe file , can you make a simple video for beginers cause someone that has that on there screen they dont need youre video
great video!
hi i have an bug with this when i open the exe its supposed to enter some information but after i press enter or whenever i open the exe and press enter the window closes so i cant get the result which i want i tried modifying to the code so it displays the result in a notepad file but the window closes to fast to even create a notepad file pls help
Great tutorial, very practic and easy to understand! Thanks!
Does this work with streamlit libary? I made an exe but it displays streamlit libary not found
Hi there, the .exe generated by pyinstaller is getting detected as a virus by windows defender as well as other antivirus softwares and thus I am not able to execute it. Please help
This happens all the time.
"9795 INFO: Building EXE because EXE-00.toc is non existent
9795 INFO: Building EXE from EXE-00.toc
Fatal error: PyInstaller does not include a pre-compiled bootloader for your
platform. For more details and instructions how to build the bootloader see"
can you help me i do pyinstaller after installing it and it says the term pyinstaller is not recognized
Good explanation. But you mentioned this is not the production way, since on many computers, it will be flagged as virus. So what would be the “official” way to release a software developed in python?
You would need to license it. It costs around $100 unfortunately.
@@stickpal What do you mean by licensing it? Need to purchase the tool?
@@AbishaiSingh licensing your own app is basically giving the app info about who made it, the organisation behind it etc, I unfortunately do not know for certain how it actually works but It would be better if you look online for a better answer.
@@stickpal Thanks bud
How do you change the icon for the exe?
hello! it worked, but it doesn't closes after finishing the code or when it finds an error
Hey when I run the pip command my terminal is showing me Erros❌how can I resolve that problem
Hall Jose Walker Brian Walker David
it worked. But it doesn't closes after finishing or after an error
doesn't work for me doesn't recognize as a batch file
why it is telling me that it is a troyan?
help it doesn't work it says that pyinstaller is not a command
My main file in fist just closes after opening 😢
what if my project has multiple files?