Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
q2333gh opened this issue Jun 6, 2024 · 1 comment

Comments

@q2333gh
Copy link

q2333gh commented Jun 6, 2024

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
Copy link
Author

q2333gh commented Jun 6, 2024

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.

@q2333gh q2333gh closed this as completed Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant