我正在使用詩歌版本 1.2.2 和 python 3.11 我想使用 pl.read_sql() 之類的 polars 讀取 sql 查詢,但它需要 connectorx 庫。我可以使用 pip install connectorx 安裝該庫,但 poetry add connectorx 出現此錯誤:
RuntimeError
Unable to find installation candidates for connectorx (0.3.1)
at ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\poetry\installation\chooser.py:103 in choose_for
99│
100│ links.append(link)
101│
102│ if not links:
→ 103│ raise RuntimeError(f"Unable to find installation candidates for {package}")
104│
105│ # Get the best link
106│ chosen = max(links, key=lambda link: self._sort_key(package, link))
107│
嘗試清除詩歌快取嘗試添加到 pyproject.toml
uj5u.com熱心網友回復:
connectorx既不提供 python 3.11 的 wheel 檔案,也不提供可以構建 wheel 的源代碼分發。請參閱https://pypi.org/project/connectorx/#files
所以沒辦法在python 3.11上安裝
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/535304.html
