VikParuchuri / marker

Convert PDF to markdown quickly with high accuracy
https://www.datalab.to
GNU General Public License v3.0
16.77k stars 953 forks source link

Can anyone tell me how to one command install all dependencies of this lib ? I dont find requirement.txt #175

Closed q2333gh closed 3 months ago

q2333gh commented 3 months ago

I have cloned marker into local computer. But got no clue to download all dependencies for this project.

This question seems a little bit silly. but if anyone can help that all be great!

q2333gh commented 3 months ago

Here is the solution gpt4 tell me :

You're right, the VikParuchuri/marker project does not have a requirements.txt file. However, it uses a pyproject.toml and poetry.lock file for managing dependencies¹. This is a common practice in projects that use Poetry for dependency management.

Here are the steps to install the dependencies for this project:

1. Install Poetry: Poetry is a tool for dependency management and packaging in Python. You can install it with the following command:

pip install poetry
  1. Clone the repository: You can clone the repository using the following command:
git clone https://github.com/VikParuchuri/marker.git
  1. Navigate to the project directory:
cd marker
  1. Install the dependencies: You can install the dependencies using Poetry with the following command:
poetry install

This command reads the pyproject.toml and poetry.lock files in the project directory and installs all the dependencies listed there¹.

Additionally, the project seems to use ocrmypdf as an optional OCR backend¹. You can install it separately if you want to use this feature¹.

Please note that the project requires Python 3.9+ and PyTorch¹. Make sure you have these installed before you proceed.

If you encounter any issues during the installation, feel free to ask for help! 😊

Source: Conversation with Copilot, 6/6/2024 (1) GitHub - VikParuchuri/marker: Convert PDF to markdown quickly with high .... https://github.com/VikParuchuri/marker. (2) The way to install VikParuchuri/marker on Windows 10. #12 - GitHub. https://github.com/VikParuchuri/marker/issues/[1](https://github.com/VikParuchuri/marker)2. (3) marker-pdf · PyPI. https://pypi.org/project/marker-pdf/. (4) undefined. https://visualstudio.microsoft.com/vs/community/. (5) undefined. https://developer.nvidia.com/cuda-downloads. (6) undefined. https://download.pytorch.org/whl/cu121. (7) undefined. https://github.com/facebookresearch/detectron2.git. (8) undefined. https://digi.bib.uni-mannheim.de/tesseract/. (9) undefined. https://ghostscript.readthedocs.io/en/gs10.02.0/Install.html. (10) undefined. https://github.com/VikParuchuri/marker.git.