Unable to use pyinstaller
hajardr
-
hajardr -
hajardr -
Hello forum friends, my problem is that converting a py file to exe using pyinstaller is impossible. I have tried all the methods available on the internet, not on YouTube, not on websites, and not in free forums, not in the pdf files available online. Help us and thank you in advance.
1 réponse
Hello,
What version of Python?
Why is this impossible?
If it's not working, then you must have an error, a malfunction, you'll need to provide more details about what's happening.
And if you can’t get it to work with PyInstaller, try with cx_Freeze, take a good look at this page where there’s a whole bunch of information.
https://stackoverflow.com/questions/41570359/how-can-i-convert-a-py-to-exe-for-python#answer-44433442
There’s also auto-py-to-exe to try.
What version of Python?
Why is this impossible?
If it's not working, then you must have an error, a malfunction, you'll need to provide more details about what's happening.
And if you can’t get it to work with PyInstaller, try with cx_Freeze, take a good look at this page where there’s a whole bunch of information.
https://stackoverflow.com/questions/41570359/how-can-i-convert-a-py-to-exe-for-python#answer-44433442
There’s also auto-py-to-exe to try.
Okay, you have version 3.6.
I don't know much about PyInstaller, and I've never needed to create an executable, so the documentation says it generates a myscript.spec file.
https://pyinstaller.readthedocs.io/en/stable/usage.html
What does yours contain when you used PyInstaller?
What do the log files contain? (if it's not too long)
You should try using auto-py-to-exe; it will probably be easier for you since there's a graphical interface.
https://github.com/brentvollebregt/auto-py-to-exe
password = "hajardr"
word = ""
attempts = 0
while word != password and attempts <3 :
word = input("type the password here")
attempts += 1
if word == password :
print("correct")
if word != password and attempts <=3 :
print("out of attempts")
So, I don't think that's the problem, and I want to emphasize that I also used github, but when I put the file path there, it opened it for me via firefox and wrote those two lines for me, which I cannot write in front of them, so as not to understand their content:
# Automatically detect text files and perform LF normalization
And please, saying "it doesn't work" doesn't help at all to solve a problem. I am not going to keep pulling teeth to understand what you are doing wrong. It's up to you to describe precisely what you are doing and what is not going well.
If you had said from the beginning that you couldn't use pip, it would have avoided all this unnecessary talk.
So what happens when you run this command in your windows console (and not in the Python interpreter):
?
Or if you run the command (if the previous one fails):
?
I expect you to copy/paste in your next message what happens in the console.