ltp
ltp copied to clipboard
安装报错
下面是报错信息,我只看了第一个ERROR,显示找不到符合版本要求的maturin,然后我去对应的PyPI页面查看,上面显示最新版本的确到了0.13,但是我使用pip install maturin=0.13.3安装对应的包,提示的报错信息也显示找不到对应的包
Collecting ltp
Using cached ltp-4.2.10-py3-none-any.whl (20 kB)
Collecting ltp-core
Using cached ltp_core-0.1.2-py3-none-any.whl (68 kB)
Collecting ltp-extension
Using cached ltp_extension-0.1.8.tar.gz (92 kB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /home/klwang/miniconda3/envs/match-baseline/bin/python /home/klwang/miniconda3/envs/match-baseline/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-pwyxbntz/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'maturin>=0.13,<0.14'
cwd: None
Complete output (2 lines):
ERROR: Could not find a version that satisfies the requirement maturin<0.14,>=0.13 (from versions: 0.7.1, 0.7.2, 0.7.6, 0.7.7, 0.7.8, 0.7.9, 0.8.0, 0.8.1, 0.8.2, 0.8.3, 0.9.0, 0.9.1, 0.9.4, 0.10.0, 0.10.2, 0.10.3, 0.10.4, 0.10.5, 0.10.6, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.11.4, 0.11.5, 0.12.0, 0.12.1, 0.12.2, 0.12.3, 0.12.4, 0.12.5, 0.12.6, 0.12.7, 0.12.8, 0.12.9, 0.12.10, 0.12.11, 0.12.12, 0.12.13, 0.12.14, 0.12.15, 0.12.16, 0.12.17, 0.12.18b1, 0.12.18b2, 0.12.18, 0.12.19, 0.12.20)
ERROR: No matching distribution found for maturin<0.14,>=0.13
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/1d/1a/17a693f6c1c38c3b251133ee1f9a114e2e62d37d3a4ec767c6313b859612/ltp_extension-0.1.8.tar.gz#sha256=6432dcb6c313958dd810af00f415a3f24314862c461f3b42d8cfd2e1204a792d (from https://pypi.org/simple/ltp-extension/). Command errored out with exit status 1: /home/klwang/miniconda3/envs/match-baseline/bin/python /home/klwang/miniconda3/envs/match-baseline/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-pwyxbntz/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'maturin>=0.13,<0.14' Check the logs for full command output.
Using cached ltp_extension-0.1.7.tar.gz (92 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: /home/klwang/miniconda3/envs/match-baseline/bin/python /home/klwang/miniconda3/envs/match-baseline/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpdelqx2ob
cwd: /tmp/pip-install-t67622em/ltp-extension_11edac253305460f8fa5b79c20b8ddb5
Complete output (6 lines):
Cargo, the Rust package manager, is not installed or is not on PATH.
This package requires Rust and Cargo to compile extensions. Install it through
the system's package manager or via https://rustup.rs/
Checking for Rust toolchain....
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/87/7e/3979012989da6f065fd59d4033914793741c7d05afde4cc2bcc4530eb87a/ltp_extension-0.1.7.tar.gz#sha256=959981e022f130698e2312f7166b48cfd47153fa3056e8ab5a319c64e7ceb5a0 (from https://pypi.org/simple/ltp-extension/). Command errored out with exit status 1: /home/klwang/miniconda3/envs/match-baseline/bin/python /home/klwang/miniconda3/envs/match-baseline/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpdelqx2ob Check the logs for full command output.
Using cached ltp_extension-0.1.6.tar.gz (92 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: /home/klwang/miniconda3/envs/match-baseline/bin/python /home/klwang/miniconda3/envs/match-baseline/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpln6ev_21
cwd: /tmp/pip-install-t67622em/ltp-extension_975f646366b746d3a27909cd3bacd72d
Complete output (6 lines):
Cargo, the Rust package manager, is not installed or is not on PATH.
This package requires Rust and Cargo to compile extensions. Install it through
the system's package manager or via https://rustup.rs/
Checking for Rust toolchain....
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/47/f1/b158d80f7a9fa933baf7c8c0fae8963f16813e502d577e07d54bc5dc3f52/ltp_extension-0.1.6.tar.gz#sha256=54bae65d14c4d00c5303dd812ed51e0f5c684a54cc4098888ca47bce6666abc3 (from https://pypi.org/simple/ltp-extension/). Command errored out with exit status 1: /home/klwang/miniconda3/envs/match-baseline/bin/python /home/klwang/miniconda3/envs/match-baseline/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpln6ev_21 Check the logs for full command output.
Using cached ltp_extension-0.1.5.tar.gz (91 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: /home/klwang/miniconda3/envs/match-baseline/bin/python /home/klwang/miniconda3/envs/match-baseline/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpuezebxdh
cwd: /tmp/pip-install-t67622em/ltp-extension_d59daef088574afcb23398ccd4e58d99
Complete output (6 lines):
Cargo, the Rust package manager, is not installed or is not on PATH.
This package requires Rust and Cargo to compile extensions. Install it through
the system's package manager or via https://rustup.rs/
Checking for Rust toolchain....
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/58/c6/da59a7e876fe89d690f0658f9a992940cff73da5f242db628a35166cd099/ltp_extension-0.1.5.tar.gz#sha256=5f4957eda11fffe8d9d838050c187277a84d53fb71009a321c850c60da154b05 (from https://pypi.org/simple/ltp-extension/). Command errored out with exit status 1: /home/klwang/miniconda3/envs/match-baseline/bin/python /home/klwang/miniconda3/envs/match-baseline/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpuezebxdh Check the logs for full command output.
Using cached ltp_extension-0.1.4.tar.gz (91 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: /home/klwang/miniconda3/envs/match-baseline/bin/python /home/klwang/miniconda3/envs/match-baseline/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpkcjrdwuk
cwd: /tmp/pip-install-t67622em/ltp-extension_58de40cc94754a539925400f66dd2cdb
Complete output (6 lines):
Cargo, the Rust package manager, is not installed or is not on PATH.
This package requires Rust and Cargo to compile extensions. Install it through
the system's package manager or via https://rustup.rs/
Checking for Rust toolchain....
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/8c/be/a76b4f92375030db9a55895c93f504fac400bcaa484a879e2b58b16abd40/ltp_extension-0.1.4.tar.gz#sha256=9aa5aea2084c30377b0a38293a79f7793795779eed1e8d62e8def44f1b7ed10f (from https://pypi.org/simple/ltp-extension/). Command errored out with exit status 1: /home/klwang/miniconda3/envs/match-baseline/bin/python /home/klwang/miniconda3/envs/match-baseline/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpkcjrdwuk Check the logs for full command output.
Using cached ltp_extension-0.1.3.tar.gz (85 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: /home/klwang/miniconda3/envs/match-baseline/bin/python /home/klwang/miniconda3/envs/match-baseline/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmphk5gx0t4
cwd: /tmp/pip-install-t67622em/ltp-extension_3a87bdc16b414bb8a8e16fe377fc10a0
Complete output (6 lines):
Cargo, the Rust package manager, is not installed or is not on PATH.
This package requires Rust and Cargo to compile extensions. Install it through
the system's package manager or via https://rustup.rs/
Checking for Rust toolchain....
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/b9/81/7174d97c4086a4716dc1e16d0e77bcba5f6672bb3349f34cc823d986f10f/ltp_extension-0.1.3.tar.gz#sha256=c71c44aa42ce1eb97abd691bb8dce8e2dff4bf183bfa8105992ffe144af6b81b (from https://pypi.org/simple/ltp-extension/). Command errored out with exit status 1: /home/klwang/miniconda3/envs/match-baseline/bin/python /home/klwang/miniconda3/envs/match-baseline/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmphk5gx0t4 Check the logs for full command output.
Using cached ltp_extension-0.1.2.tar.gz (85 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: /home/klwang/miniconda3/envs/match-baseline/bin/python /home/klwang/miniconda3/envs/match-baseline/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpus3wjjqq
cwd: /tmp/pip-install-t67622em/ltp-extension_0aacee16db334b948dccdccafc029b6f
Complete output (6 lines):
Cargo, the Rust package manager, is not installed or is not on PATH.
This package requires Rust and Cargo to compile extensions. Install it through
the system's package manager or via https://rustup.rs/
Checking for Rust toolchain....
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/a1/e7/0c996c20e1095c83759554c4865279daf59d1e1ba9d143d1bd050b67a04d/ltp_extension-0.1.2.tar.gz#sha256=49cf79c07e5cbb946227ac5cb21f449c5c0e47692b86ec36740c6deff7441317 (from https://pypi.org/simple/ltp-extension/). Command errored out with exit status 1: /home/klwang/miniconda3/envs/match-baseline/bin/python /home/klwang/miniconda3/envs/match-baseline/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpus3wjjqq Check the logs for full command output.
Using cached ltp_extension-0.1.0.tar.gz (82 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: /home/klwang/miniconda3/envs/match-baseline/bin/python /home/klwang/miniconda3/envs/match-baseline/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp7h36_7ob
cwd: /tmp/pip-install-t67622em/ltp-extension_d5343bf3948e48ae88d8f71714efa6e3
Complete output (6 lines):
Cargo, the Rust package manager, is not installed or is not on PATH.
This package requires Rust and Cargo to compile extensions. Install it through
the system's package manager or via https://rustup.rs/
Checking for Rust toolchain....
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/a2/02/fe3a0d6deca17f7554db84889d988309e1fafd60f2c49c35fed9a87ae293/ltp_extension-0.1.0.tar.gz#sha256=602c31e6a7f7b2b0fd05f985837a86c992f2d93eb4a20d1ed4f25be518f6dcbd (from https://pypi.org/simple/ltp-extension/). Command errored out with exit status 1: /home/klwang/miniconda3/envs/match-baseline/bin/python /home/klwang/miniconda3/envs/match-baseline/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp7h36_7ob Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement ltp-extension (from versions: 0.1.0, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8)
ERROR: No matching distribution found for ltp-extension
好吧,我发现是我的python版本低了,0.13.3版本要求python版本>=3.7