![](/img/trans.png)
[英]"Unable to find installation candidates" in poetry trying to install `genicam` - how to debug?
[英]Poetry 1.1.11 | Unable to find installation candidates for
我想為pathlib
包添加一個依賴pathlib
。
規格:
錯誤:
401 Client Error
(已解決),Unable to find installation candidates for
所有軟件包的Unable to find installation candidates for
。終端(更新):
me@PF2DCSXD:/mnt/c/Users/user/Documents/GitHub/workers-python/workers/composite_key/compositekey/tests$ poetry add pathlib
Using version ^1.0.1 for pathlib
Updating dependencies
Resolving dependencies... (119.0s)
Writing lock file
Package operations: 55 installs, 14 updates, 0 removals
• Updating grpcio (1.41.0 -> 1.41.1): Pending...
• Updating protobuf (3.18.1 -> 3.19.1): Pending...
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
• Updating protobuf (3.18.1 -> 3.19.1): Pending...
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
• Updating grpcio (1.41.0 -> 1.41.1): Failed
• Updating protobuf (3.18.1 -> 3.19.1): Pending...
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
• Updating protobuf (3.18.1 -> 3.19.1): Pending...
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
RuntimeError
• Updating protobuf (3.18.1 -> 3.19.1): Pending...
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
• Updating protobuf (3.18.1 -> 3.19.1): Pending...
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
Unable to find installation candidates for grpcio (1.41.1)
• Updating protobuf (3.18.1 -> 3.19.1): Pending...
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
• Updating protobuf (3.18.1 -> 3.19.1): Pending...
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
• Updating protobuf (3.18.1 -> 3.19.1): Pending...
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
68│
• Updating protobuf (3.18.1 -> 3.19.1): Pending...
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
69│ links.append(link)
• Updating protobuf (3.18.1 -> 3.19.1): Pending...
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
70│
• Updating protobuf (3.18.1 -> 3.19.1): Pending...
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
71│ if not links:
• Updating protobuf (3.18.1 -> 3.19.1): Pending...
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
→ 72│ raise RuntimeError(
• Updating protobuf (3.18.1 -> 3.19.1): Pending...
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
73│ "Unable to find installation candidates for {}".format(package)
• Updating protobuf (3.18.1 -> 3.19.1): Pending...
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
74│ )
• Updating protobuf (3.18.1 -> 3.19.1): Pending...
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
75│
• Updating protobuf (3.18.1 -> 3.19.1): Pending...
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
76│ # Get the best link
• Updating protobuf (3.18.1 -> 3.19.1): Pending...
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
• Updating protobuf (3.18.1 -> 3.19.1): Pending...
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
• Updating protobuf (3.18.1 -> 3.19.1): Failed
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
RuntimeError
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
Unable to find installation candidates for protobuf (3.19.1)
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
68│
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
69│ links.append(link)
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
70│
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
71│ if not links:
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
→ 72│ raise RuntimeError(
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
73│ "Unable to find installation candidates for {}".format(package)
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
74│ )
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
75│
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
76│ # Get the best link
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
• Updating pyparsing (2.4.7 -> 3.0.4): Failed
RuntimeError
Unable to find installation candidates for pyparsing (3.0.4)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
71│ if not links:
→ 72│ raise RuntimeError(
73│ "Unable to find installation candidates for {}".format(package)
74│ )
75│
76│ # Get the best link
• Updating sqlalchemy (1.4.25 -> 1.4.26): Failed
RuntimeError
Unable to find installation candidates for sqlalchemy (1.4.26)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
71│ if not links:
→ 72│ raise RuntimeError(
73│ "Unable to find installation candidates for {}".format(package)
74│ )
75│
76│ # Get the best link
• Updating traitlets (5.1.0 -> 5.1.1): Failed
RuntimeError
Unable to find installation candidates for traitlets (5.1.1)
at ~/.local/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
71│ if not links:
→ 72│ raise RuntimeError(
73│ "Unable to find installation candidates for {}".format(package)
74│ )
75│
76│ # Get the best link
Failed to add packages, reverting the pyproject.toml file to its original content.
如果還有什么我可以添加到帖子中,請告訴我。
401 Client Error
我需要提供 Azure DevOps PAT。 微軟文檔 | 使用個人訪問令牌
Unable to find installation candidates for ...
(待解決)
謝謝善。 發布您的建議作為幫助其他社區成員的答案。
您可以使用poetry self update
如果您收到RuntimeError Poetry was not installed with the recommended installer. Cannot update automatically.
RuntimeError Poetry was not installed with the recommended installer. Cannot update automatically.
這意味着您已經使用pip
安裝了poetry
在 osx/linux 上,你只需要運行
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
下載並運行此安裝腳本。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.