omegaconf
omegaconf copied to clipboard
Unable to install omegaconf (latest, 2.2.3, >2.0.0), python 3.11, 3.10, antlr4-python3-runtime failed
I need to install omegaconf latest or 2.2.3, but have an issues installing it. Latest omegaconf requests antlr4-python3-runtime version 4.9.* that fails to install Installing antlr4-python3-runtime successfully installs 4.13.1, but not 4.9.*
Tried python 3.11, 3.10 Tried upgraded pip/setuptools to latest and downgraded setuptools to 68
Tried omegaconf:
omegaconf==2.3 (asks antlr4-python3-runtime==4.9.* (from omegaconf==2.3->-r requirements.txt (line 6)))
omegaconf<2.3 (antlr4-python3-runtime==4.9.* (from omegaconf<2.3->-r requirements.txt (line 6)))
omegaconf<2.2 (antlr4-python3-runtime==4.8 (from omegaconf<2.2->-r requirements.txt (line 6)))
omegaconf<2.1 (only 2.0.0 installed, all other versions "has invalid metadata")
Tried all versions of antlr4-python3-runtime:
antlr4-python3-runtime==4.9.3
antlr4-python3-runtime<4.9
antlr4-python3-runtime<4.8
antlr4-python3-runtime<4.7
antlr4-python3-runtime<4.5
- Create a virtual environment (my default python is 3.11)
python.exe -m venv .\venv
orD:\Dev\Python\3.10\python.exe -m venv .\venv
(my secondary python 3.10) - Activate venv:
venv\Scripts\activate.bat
- (can be skipped)
python -m pip install --upgrade pip setuptools
- create
requirements.txt
withomegaconf
line (not direct command because different versions tried) - run
python -m pip install -r requirements.txt
-ERROR: Failed to build installable wheels for some pyproject.toml based projects (antlr4-python3-runtime)
- edit
requirements.txt
toomegaconf<2.3
, repeat №5 - same error - repeat №6, changing
2.3
to 2.2, 2.1 - same errors except that version 2.0.0 was installed
Console logs attached: 1. 3.11 venv setup.log.txt 2. 3.11 venv omegaconf setup.log.txt 3. 3.11 venv omegaconf==2.2.3 setup.log.txt 4. 3.11 venv antlr4-python3-runtime setup.log.txt 5. 3.11 venv omegaconf setup.log.txt 6. 3.11 venv antlr4-python3-runtime==4.9.3 setup.log.txt