我想為pathlib包添加依賴項。
規格:
- 視窗 10,
- 視覺作業室代碼,
- Ubuntu Bash。
錯誤:
401 Client Error(解決了),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.
如果還有什么我可以添加到帖子中,請告訴我。
GitHub 問題帖子
解決方案
401 Client Error
我需要提供 Azure DevOps PAT。
微軟檔案 | 使用個人訪問令牌
Unable to find installation candidates for ...
(待解決)
uj5u.com熱心網友回復:
謝謝善。發布您的建議作為幫助其他社區成員的答案。
您可以使用 poetry self update
如果你得到RuntimeError Poetry was not installed with the recommended installer. Cannot update automatically.這意味著你已經安裝poetry了pip
pip不支持自動詩歌更新。您應該卸載當前安裝的詩歌版本,并使用推薦的方法重新安裝它,該方法使用自定義安裝腳本。
在 osx/linux 上,您只需運行
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -下載并運行此安裝腳本。
您可以參考未使用推薦的安裝程式安裝 Poetry。無法自動更新
uj5u.com熱心網友回復:
我需要提供 Azure DevOps PAT。
微軟檔案 | 使用個人訪問令牌
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/346412.html
上一篇:從未加入廣告的設備連接到AZVM
