Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Turn py into exe
#1
I don't have access to a compiler, could someone, please, turn this python 3 code into an exe file and also test it?
import openpyxl as xl

f=xl.Workbook()
f.title='1 lpp'
sheet = wb.get_sheet_by_name('1 lpp')
text=open('text.txt').read().split()
for i in range(len(text)):
    if i%2==0:
        sheet.cell(row=1, column=i+1)=text[i]
    else:
        sheet.cell(row=2, column=i+1)=text[i]
wb.save('test.xlsx')
The program should create a test.xlsx file with first (and only) page titled "1 lpp" which contains text from text.txt in a format like this:
This  an
    is  example
Reply
#2
Is this homework?
Recommended Tutorials:
Reply
#3
Something prevents me from posting messages in https://python-forum.io/Thread-Turn-py-into-exe
I get php error or empty reply error.

What I wanted to post was:
(Jul-14-2019, 11:07 AM)metulburr Wrote: Is this homework?
Not quite, but i thought it was the appropriate place to ask this question.

So... no one?
Well, is it possible to do this online then?
Reply
#4
Quote:could someone, please, turn this python 3 code into an exe file and also test it?
We dont usually do requests like this. Explained here we state our goal for this forum
Quote:This forum is focused on education. It exists to help people learn Python. We don’t exist to solve others’ problems, although that tends to be a happy byproduct of education.
However we do have a section for jobs if you want to pay someone to do it. I would do it for free, but im on linux.

Converting a py to exe is not always easy, and can get more complicated if 3rd party libraries are involved. For anyone wanting to do this i would suggest pyinstaller. But to be honest you can go to your local library and do this if you dont have a windows desktop to do it at home.
Recommended Tutorials:
Reply
#5
Are you getting an error when trying to run it through pyinstaller? You don't need a compiler to run it.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Turn coordinates in string into a tuple Kolterdyx 3 2,734 Jun-10-2020, 05:04 AM
Last Post: buran
  How do i turn my program into a .exe julio2000 1 1,879 Feb-14-2020, 08:18 PM
Last Post: snippsat
  How do I turn a directory of HTML files into one CSV? glittergirl 2 1,790 Sep-21-2019, 05:33 PM
Last Post: glittergirl
  Not sure how to turn this into a loop iamgonge 1 2,079 Dec-05-2018, 11:03 PM
Last Post: anandoracledba

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020