簡體   English   中英

詩歌 1.1.11 | 無法找到安裝候選

[英]Poetry 1.1.11 | Unable to find installation candidates for

我想為pathlib包添加一個依賴pathlib

規格:

  • 視窗 10,
  • 視覺工作室代碼,
  • Ubuntu Bash。

錯誤:

  • 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.

如果還有什么我可以添加到帖子中,請告訴我。

GitHub 問題帖子


解決方案

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

pip不支持自動詩歌更新。 您應該卸載當前安裝的詩歌版本,並使用推薦的方法重新安裝它,該方法使用自定義安裝腳本。

在 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 -下載並運行此安裝腳本。

您可以參考未使用推薦的安裝程序安裝 Poetry。 無法自動更新

我需要提供 Azure DevOps PAT。

微軟文檔 | 使用個人訪問令牌

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM