![]() ![]() Pyinstaller -F file_name.py - By adding a -F, only one folder will be created, which will be containing your. Pyinstaller -w file_name.py - By adding a -w, console will no longer appear while running your. exe file, it will open up console and run your script. This will create a few folders and files, and when you will run your. ![]() Pyinstaller file_name.py - Simply converts your python file into an executable. exe file, you can run the following commands (Make sure you are in the same directory as your python file). You can consider adding C:\Users\user_name\AppData\Roaming\Python\Python37\Scripts to the Path. If for some reason, pyinstaller installs correctly but still doesn't work, you might want to add it in your PATH. All you gotta do is pip install pyinstaller or python -m pip install pyinstaller (obviously you have to make sure that your python and pip are in PATH).To check if pyinstaller got installed correctly, simply type pyinstaller in your cmd, if no errors appear, it means, you have pyinstaller installed. Installing pyinstaller is pretty simple and straight forward. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |