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

Error when Installing Requirements #1616

Open
1 task
akadaver opened this issue Aug 29, 2024 · 0 comments
Open
1 task

Error when Installing Requirements #1616

akadaver opened this issue Aug 29, 2024 · 0 comments

Comments

@akadaver
Copy link

I am trying to install the LayoutLMv2 model

The problem arises when using:

  • the official example scripts:

pip install -r requirements.txt

I first tried running this command and it said I needed python 3.8.0 at least
image

So i changed the first installation command to conda create -n layoutlmft python=3.8 and then get the following error
image

The error I get is "ERROR: Could not find a version that satisfies the requirement detectron2 (from versions: none)
ERROR: No matching distribution found for detectron2"

To Reproduce
Steps to reproduce the behavior (Installation steps)

(first error)
conda create -n layoutlmft python=3.7
conda activate layoutlmft
git clone https://github.com/microsoft/unilm.git
cd unilm
cd layoutlmft
pip install -r requirements.txt

or

(second error)
conda create -n layoutlmft python=3.8
conda activate layoutlmft
git clone https://github.com/microsoft/unilm.git
cd unilm
cd layoutlmft
pip install -r requirements.txt

Expected behavior

I expected it to install the requiements but it didn't work.

  • Python version: 3.10.14 in the base environment
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