Skip to content

how to make exe with pyinstaller #11490

Answered by Heryk13
Heryk13 asked this question in Q&A
Jan 14, 2024 · 7 comments · 63 replies
Discussion options

You must be logged in to vote

hey @Edmond-Lee-Zse-Wong i created a exe with your code. here is what i used

code:
`import traceback
import time

try:
from paddleocr import PaddleOCR
ocr = PaddleOCR(use_angle_cls=True, lang="ch") # need to run only once to download and load model into memory
img_path = "img.png"
result = ocr.ocr(img_path, cls=True)
for idx in range(len(result)):
res = result[idx]
for line in res:
print(f"ocrText: {line[1][0]}")
except Exception as e:
traceback.print_exc()
time.sleep(60)
`

i tested in the python versions 3.10.13 and i saw the error scipy, and did what @pikut said.
like this.

and it worked i think you could try in the python version 3.10.13 or 3.9.13 and 3.10.11 that worked for @pikut too.

Replies: 7 comments 63 replies

Comment options

You must be logged in to vote
3 replies
@Heryk13
Comment options

@pikut
Comment options

@Heryk13
Comment options

Comment options

You must be logged in to vote
10 replies
@Edmond-Lee-Zse-Wong
Comment options

@Heryk13
Comment options

@Edmond-Lee-Zse-Wong
Comment options

@Heryk13
Comment options

Answer selected by GreatV
@Edmond-Lee-Zse-Wong
Comment options

@Heryk13
Comment options

@pikut
Comment options

Comment options

You must be logged in to vote
46 replies
@Heryk13
Comment options

@NguyenDucQuan12
Comment options

@NguyenDucQuan12
Comment options

@Heryk13
Comment options

@NguyenDucQuan12
Comment options

Comment options

You must be logged in to vote
1 reply
@Heryk13
Comment options

Comment options

You must be logged in to vote
1 reply
@Heryk13
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Heryk13
Comment options

@stephen617hong
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants