小编Jus*_*tel的帖子

诗无法找到连接器x的安装候选

我正在使用诗歌版本 1.2.2 和 python 3.11\n我想使用像 pl.read_sql() 这样的极坐标来读取 sql 查询\n但它需要connectorx库。\n我可以使用 pip installconnectorx 但诗歌来安装该库添加connectorx给出了这个错误:

\n
 RuntimeError\n\n  Unable to find installation candidates for connectorx (0.3.1)\n\n  at ~\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\poetry\\installation\\chooser.py:103 in choose_for\n       99\xe2\x94\x82\n      100\xe2\x94\x82             links.append(link)\n      101\xe2\x94\x82\n      102\xe2\x94\x82         if not links:\n    \xe2\x86\x92 103\xe2\x94\x82             raise RuntimeError(f"Unable to find installation candidates for {package}")\n      104\xe2\x94\x82\n      105\xe2\x94\x82         # Get the best link\n      106\xe2\x94\x82         chosen = max(links, key=lambda link: self._sort_key(package, link))\n      107\xe2\x94\x82\n\n
Run Code Online (Sandbox Code Playgroud)\n

尝试清除诗歌缓存\n尝试添加到 pyproject.toml 中

\n

postgresql python-poetry python-polars

0
推荐指数
1
解决办法
2568
查看次数

标签 统计

postgresql ×1

python-poetry ×1

python-polars ×1