Skip to content

How can I deploy/install PaddleOCR(paddlepaddle) on an AWS EC2 instance? #11018

Discussion options

You must be logged in to vote

That's a great question. Here's what I did to get this working:

  1. I'm using the latest AL2023 - Amazon Linux 2023.4.20240429
  2. Installed Python 3.11 using this tutorial: https://plainenglish.io/community/how-to-install-python-3-11-with-pip-on-amazon-linux-2023-9ab2ed
  3. Used Python3.11 to create a virtual env and installed the requirements.txt that you provided in GitHub
  4. To resolve the missing 'libgl.so.1' file, I executed 'sudo dnf install libglvnd-glx' which installed quite a few dependencies.
  5. I updated line 64 of the app.py file to force Flask to run on the IP of the instance and a different port.

After that, I ran your python file:
$ python3.11 ./app.py

and my POST requests work like a champ.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GreatV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants