Open laclouis5 opened 7 months ago
Any movement on this issue? I am having the same issue.
Hi, what is your pytorch and cuda version? It seems like the pre-built mmcv has not been found so it build it from source.
Hi, I just realized that "https://mmocr.readthedocs.io/en/dev-1.x/get_started/install.html" produces the above errors and the installation in the readme works well. No issues.
Thanks!
Prerequisite
Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
main branch https://github.com/open-mmlab/mmocr
Environment
Linux 22.04 with NVIDIA card. Conda up to date, PyTorch installed through the official instructions (conda) with GPU support. I'm using Python 3.8 as suggested in the installation guide. gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04).
Reproduces the problem - code sample
The error occurs during the installation process.
Reproduces the problem - command or script
I'm just trying to install MMOCR using the official installation using MIM:
Reproduces the problem - error message
The installation of MMOCR fails with the message (truncated):
Additional information
I tried a lot of alternatives, including installing MMOCR from source (using the git repo official installation). This fails with version constrains not being met (MMDET not compatible with MMOCR). If I try to install the correct version I face the same wheel compilation issue as presented above.
I tried in another computer running macOS and I also face issues that I cannot solve during installation (linker symbols missing, etc.).
To be honest, I wonder how the current installation guide of MMOCR could work reliably since it uses 3 different tools to manage dependencies and virtual environments (conda, pip, mim) and relies on external dependencies (gcc I think). Moreover, there is no dependency contrain anywhere in the installation guide (mmcv, model, etc.) while we know for sure that there is a lot of contrains in MMOCR and other MM tools given the amount of error messages about wrong dependencies.
Would it be possible to clarify how to install MMOCR and give a comprehensive guide in order to be able to install this tool reliably?