Camel Parser本地IDE安装失败求助:依赖报错与跨系统问题
关于Camel Parser在本地IDE安装失败的问题
我在Google Colab(Python版本3.10.12)上成功安装并正常使用了Camel Parser,但在PyCharm和Visual Studio Code两款IDE中均无法完成安装。
更新信息:该库在基于Linux Ubuntu的Google Colab中运行正常,但在我的Windows11上无法安装。为排查是否为系统问题,我尝试在Ubuntu(Python3.11.6、3.9.0)及macOS(Python3.9)上安装,仍出现相同错误。
PyCharm中使用两个Python解释器的报错信息
Python 3.11.2
安装依赖时出错:ERROR: Ignored the following yanked versions: 0.2.dev0, 0.3.dev0, 0.4.dev0, 0.4.dev1, 0.4.dev2, 0.4.dev3, 0.4.dev4, 0.4.dev5, 1.0.0 ERROR: Ignored the following versions that require a different python version: 1.3.0 Requires-Python >=3.7.0, <3.10.*; 1.3.1 Requires-Python >=3.7.0, <3.10.*; 1.4.0 Requires-Python >=3.7.0, <3.10.*; 1.4.1 Requires-Python >=3.7.0, <3.10.*; 1.5.0 Requires-Python >=3.7.0, <3.11; 1.5.1 Requires-Python >=3.7.0, <3.11; 1.5.2 Requires-Python >=3.7.0, <3.11 ERROR: Could not find a version that satisfies the requirement camel-tools==1.5.2 (from versions: 1.0.1, 1.1.0, 1.2.0) ERROR: No matching distribution found for camel-tools==1.5.2Python 3.10
安装依赖时出错:note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for camel-kenlm Failed to build camel-kenlm ERROR: Could not build wheels for camel-kenlm, which is required to install pyproject.toml-based projects
VS Code中使用三个Python解释器的报错信息
Python 3.11.2
安装依赖时出错:ERROR: Ignored the following yanked versions: 0.2.dev0, 0.3.dev0, 0.4.dev0, 0.4.dev1, 0.4.dev2, 0.4.dev3, 0.4.dev4, 0.4.dev5, 1.0.0 ERROR: Ignored the following versions that require a different python version: 1.3.0 Requires-Python >=3.7.0, <3.10.*; 1.3.1 Requires-Python >=3.7.0, <3.10.*; 1.4.0 Requires-Python >=3.7.0, <3.10.*; 1.4.1 Requires-Python >=3.7.0, <3.10.*; 1.5.0 Requires-Python >=3.7.0, <3.11; 1.5.1 Requires-Python >=3.7.0, <3.11; 1.5.2 Requires-Python >=3.7.0, <3.11 ERROR: Could not find a version that satisfies the requirement camel-tools==1.5.2 (from versions: 1.0.1, 1.1.0, 1.2.0) ERROR: No matching distribution found for camel-tools==1.5.2Python 3.10.9
安装依赖时出错:ERROR: Failed building wheel for camel-kenlm Failed to build camel-kenlm ERROR: Could not build wheels for camel-kenlm, which is required to install pyproject.toml-based projectsPython 3.9.18
安装依赖时出错:note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for camel-kenlm Failed to build camel-kenlm ERROR: Could not build wheels for camel-kenlm, which is required to install pyproject.toml-based projects
已尝试的解决方法
- 更换旧版本Python(因Python3.11报错提示);
- 在Python3.11中执行命令
pip install camel-tools==1.5.2强制安装; - 从源码安装camel_tools和kenlm包。
恳请各位提供解决方案,非常感谢!
内容的提问来源于stack exchange,提问作者Alaa
相关产品推荐
相关产品推荐

