(tiacai) root@5de27e9cb8c1:/mnt/Virgil/TrOCR/fairseq-main# pip install --editable ./
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Obtaining file:///mnt/Virgil/TrOCR/fairseq-main
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Preparing editable metadata (pyproject.toml)... done
Requirement already satisfied: cffi in /opt/anaconda3/envs/tiacai/lib/python3.10/site-packages (from fairseq==0.12.2)(1.17.1)
Collecting cython (from fairseq==0.12.2)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b4/eb/8c47ba21177929f9122e7aceca9fe1f9f5a037e705226f8a5a9113fb53ba/cython-3.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB)
Collecting hydra-core<1.1,>=1.0.7 (from fairseq==0.12.2)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/5f/2a/9c698daa12ed6e09e7629e6908528f043fa9de8a441c56cc13608d765fb2/hydra_core-1.0.7-py3-none-any.whl (123 kB)
Collecting omegaconf<2.1(from fairseq==0.12.2)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d0/eb/9d63ce09dd8aa85767c65668d5414958ea29648a0eec80a4a7d311ec2684/omegaconf-2.0.6-py3-none-any.whl (36 kB)
WARNING: Ignoring version 2.0.6 of omegaconf since it has invalid metadata:
Requested omegaconf<2.1 from https://pypi.tuna.tsinghua.edu.cn/packages/d0/eb/9d63ce09dd8aa85767c65668d5414958ea29648a0eec80a4a7d311ec2684/omegaconf-2.0.6-py3-none-any.whl (from fairseq==0.12.2) has invalid metadata: .* suffix can only be used with `==` or `!=` operators
PyYAML (>=5.1.*)
~~~~~~^
Please use pip<24.1if you need to use this version.
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e5/f6/043b6d255dd6fbf2025110cea35b87f4c5100a181681d8eab496269f0d5b/omegaconf-2.0.5-py3-none-any.whl (36 kB)
WARNING: Ignoring version 2.0.5 of omegaconf since it has invalid metadata:
Requested omegaconf<2.1 from https://pypi.tuna.tsinghua.edu.cn/packages/e5/f6/043b6d255dd6fbf2025110cea35b87f4c5100a181681d8eab496269f0d5b/omegaconf-2.0.5-py3-none-any.whl (from fairseq==0.12.2) has invalid metadata: .* suffix can only be used with `==` or `!=` operators
PyYAML (>=5.1.*)
~~~~~~^
Please use pip<24.1if you need to use this version.
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/92/b1/4f3023143436f12c98bab53f0b3db617bd18a7d223627d5030e13a7b4fc2/omegaconf-2.0.4-py3-none-any.whl (36 kB)
WARNING: Ignoring version 2.0.4 of omegaconf since it has invalid metadata:
Requested omegaconf<2.1 from https://pypi.tuna.tsinghua.edu.cn/packages/92/b1/4f3023143436f12c98bab53f0b3db617bd18a7d223627d5030e13a7b4fc2/omegaconf-2.0.4-py3-none-any.whl (from fairseq==0.12.2) has invalid metadata: .* suffix can only be used with `==` or `!=` operators
PyYAML (>=5.1.*)
~~~~~~^
Please use pip<24.1if you need to use this version.
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/29/08/a88210c2c1aa0a3f65f05d8a6c98939ccb84b6fb982aa6567dec4e6773f9/omegaconf-2.0.3-py3-none-any.whl (36 kB)
WARNING: Ignoring version 2.0.3 of omegaconf since it has invalid metadata:
Requested omegaconf<2.1 from https://pypi.tuna.tsinghua.edu.cn/packages/29/08/a88210c2c1aa0a3f65f05d8a6c98939ccb84b6fb982aa6567dec4e6773f9/omegaconf-2.0.3-py3-none-any.whl (from fairseq==0.12.2) has invalid metadata: .* suffix can only be used with `==` or `!=` operators
PyYAML (>=5.1.*)
~~~~~~^
Please use pip<24.1if you need to use this version.
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/72/fe/f8d162aa059fb4f327fd75144dd69aa7e8acbb6d8d37013e4638c8490e0b/omegaconf-2.0.2-py3-none-any.whl (36 kB)
WARNING: Ignoring version 2.0.2 of omegaconf since it has invalid metadata:
Requested omegaconf<2.1 from https://pypi.tuna.tsinghua.edu.cn/packages/72/fe/f8d162aa059fb4f327fd75144dd69aa7e8acbb6d8d37013e4638c8490e0b/omegaconf-2.0.2-py3-none-any.whl (from fairseq==0.12.2) has invalid metadata: .* suffix can only be used with `==` or `!=` operators
PyYAML (>=5.1.*)
~~~~~~^
Please use pip<24.1if you need to use this version.
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/86/ec/605805e60abdb025b06664d107335031bb8ebdc52e0a90bdbad6a7130279/omegaconf-2.0.1-py3-none-any.whl (36 kB)
WARNING: Ignoring version 2.0.1 of omegaconf since it has invalid metadata:
Requested omegaconf<2.1 from https://pypi.tuna.tsinghua.edu.cn/packages/86/ec/605805e60abdb025b06664d107335031bb8ebdc52e0a90bdbad6a7130279/omegaconf-2.0.1-py3-none-any.whl (from fairseq==0.12.2) has invalid metadata: .* suffix can only be used with `==` or `!=` operators
PyYAML (>=5.1.*)
~~~~~~^
Please use pip<24.1if you need to use this version.
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/3d/95/ebd73361f9c6e94bd0f3b19ffe31c24e833834c022f1c0328ac71b2d6c90/omegaconf-2.0.0-py3-none-any.whl (33 kB)
Requirement already satisfied: numpy>=1.21.3 in /opt/anaconda3/envs/tiacai/lib/python3.10/site-packages (from fairseq==0.12.2)(1.23.5)
Requirement already satisfied: regex in /opt/anaconda3/envs/tiacai/lib/python3.10/site-packages (from fairseq==0.12.2)(2024.11.6)
Collecting sacrebleu>=1.4.12 (from fairseq==0.12.2)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/cd/45/7b55a7bd7e5c5b573b40ad58ba43fa09962dc5c8d71b1f573d4aeaa54a7e/sacrebleu-2.5.1-py3-none-any.whl (104 kB)
Requirement already satisfied: torch>=1.13in /opt/anaconda3/envs/tiacai/lib/python3.10/site-packages (from fairseq==0.12.2)(2.4.1)
Requirement already satisfied: tqdm in /opt/anaconda3/envs/tiacai/lib/python3.10/site-packages (from fairseq==0.12.2)(4.67.1)
Collecting bitarray (from fairseq==0.12.2)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c7/b6/c97ac45534569e0104ddaffe3ec507170d875c395c3fadd9220dfe288820/bitarray-3.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (312 kB)
Requirement already satisfied: torchaudio>=0.8.0 in /opt/anaconda3/envs/tiacai/lib/python3.10/site-packages (from fairseq==0.12.2)(2.4.1)
Requirement already satisfied: scikit-learn in /opt/anaconda3/envs/tiacai/lib/python3.10/site-packages (from fairseq==0.12.2)(1.6.1)
Requirement already satisfied: packaging in /opt/anaconda3/envs/tiacai/lib/python3.10/site-packages (from fairseq==0.12.2)(24.2)
Collecting omegaconf<2.1(from fairseq==0.12.2)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d0/eb/9d63ce09dd8aa85767c65668d5414958ea29648a0eec80a4a7d311ec2684/omegaconf-2.0.6-py3-none-any.whl (36 kB)
WARNING: Ignoring version 2.0.6 of omegaconf since it has invalid metadata:
Requested omegaconf<2.1 from https://pypi.tuna.tsinghua.edu.cn/packages/d0/eb/9d63ce09dd8aa85767c65668d5414958ea29648a0eec80a4a7d311ec2684/omegaconf-2.0.6-py3-none-any.whl (from fairseq==0.12.2) has invalid metadata: .* suffix can only be used with `==` or `!=` operators
PyYAML (>=5.1.*)
~~~~~~^
Please use pip<24.1if you need to use this version.
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e5/f6/043b6d255dd6fbf2025110cea35b87f4c5100a181681d8eab496269f0d5b/omegaconf-2.0.5-py3-none-any.whl (36 kB)
WARNING: Ignoring version 2.0.5 of omegaconf since it has invalid metadata:
Requested omegaconf<2.1 from https://pypi.tuna.tsinghua.edu.cn/packages/e5/f6/043b6d255dd6fbf2025110cea35b87f4c5100a181681d8eab496269f0d5b/omegaconf-2.0.5-py3-none-any.whl (from fairseq==0.12.2) has invalid metadata: .* suffix can only be used with `==` or `!=` operators
PyYAML (>=5.1.*)
~~~~~~^
Please use pip<24.1if you need to use this version.
INFO: pip is looking at multiple versions of hydra-core to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install fairseq and fairseq==0.12.2 because these package versions have conflicting dependencies.
The conflict is caused by:
fairseq 0.12.2 depends on omegaconf<2.1
hydra-core 1.0.7 depends on omegaconf<2.1 and >=2.0.5
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip to attempt to solve the dependency conflict
ERROR: ResolutionImpossible: forhelp visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts