无法安装ai4bharat-transliteration,遇omegaconf版本兼容问题
解决ai4bharat-transliteration安装失败问题
安装ai4bharat-transliteration时出现以下警告,且已安装Visual C++ build tools仍无法完成安装:
DEPRECATION: omegaconf 2.0.6 has a non-standard dependency specifier PyYAML>=5.1.*. pip 24.0 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of omegaconf or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at pypa/pip#12063
以下是可行的解决步骤:
- 先安装指定版本的omegaconf和PyYAML,规避版本依赖冲突:
pip install omegaconf==2.1.1 PyYAML==5.4.1 - 再执行ai4bharat-transliteration的安装命令:
pip install ai4bharat-transliteration - 若上述方法无效,可尝试跳过自动依赖检查,手动安装依赖:
之后根据项目文档的依赖列表,手动安装所需的其他依赖包。pip install ai4bharat-transliteration --no-deps
内容的提问来源于stack exchange,提问作者Vijay Bokade
相关产品推荐
相关产品推荐

