使用pyproject.toml文件从私有repo安装python
嗨,我想用诗歌来安装一个包含我的私人回购协议的软件包,但似乎不起作用。你知道我做错了什么吗使用pyproject.toml文件从私有repo安装python,python,python-poetry,Python,Python Poetry,嗨,我想用诗歌来安装一个包含我的私人回购协议的软件包,但似乎不起作用。你知道我做错了什么吗 [tool.poetry] name = "aa" version = "0.1.0" description = "" authors = [] [tool.poetry.dependencies] python = "^3.7" package = {version = "0.1.3", source = "abc"} [[tool.poetry.source]] name = "abc" ur
[tool.poetry]
name = "aa"
version = "0.1.0"
description = ""
authors = []
[tool.poetry.dependencies]
python = "^3.7"
package = {version = "0.1.3", source = "abc"}
[[tool.poetry.source]]
name = "abc"
url = "url"
default = true
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
我收到错误消息,因为package1依赖于package2,而package2与任何版本都不匹配,版本解决失败
但是我可以从我的私有repo使用pip安装这个包
Traceback (most recent call last):
File "/Users/abc/poetry_test/test/lib/python3.8/site-packages/clikit/console_application.py", line 131, in run
status_code = command.handle(parsed_args, io)
File "/Users/abc/poetry_test/test/lib/python3.8/site-packages/clikit/api/command/command.py", line 120, in handle
status_code = self._do_handle(args, io)
File "/Users/abc/poetry_test/test/lib/python3.8/site-packages/clikit/api/command/command.py", line 171, in _do_handle
return getattr(handler, handler_method)(args, io, self)
File "/Users/abc/poetry_test/test/lib/python3.8/site-packages/cleo/commands/command.py", line 92, in wrap_handle
return self.handle()
File "/Users/abc/poetry_test/test/lib/python3.8/site-packages/poetry/console/commands/install.py", line 63, in handle
return_code = installer.run()
File "/Users/abc/poetry_test/test/lib/python3.8/site-packages/poetry/installation/installer.py", line 74, in run
self._do_install(local_repo)
File "/Users/abc/poetry_test/test/lib/python3.8/site-packages/poetry/installation/installer.py", line 225, in _do_install
ops = solver.solve(use_latest=whitelist)
File "/Users/abc/poetry_test/test/lib/python3.8/site-packages/poetry/puzzle/solver.py", line 36, in solve
packages, depths = self._solve(use_latest=use_latest)
File "/Users/abc/poetry_test/test/lib/python3.8/site-packages/poetry/puzzle/solver.py", line 190, in _solve
raise SolverProblemError(e)
那么,错误信息是什么?它找到寄存处了吗?您的凭据是否未设置?包丢失了吗?@Arne sry关于忘记添加错误消息,我收到错误消息,因为package1依赖于package2,而package2与任何版本都不匹配,版本解决失败。但是我可以使用我的私有report中的pip安装这个包,这可能是一堆事情——可能是没有正确设置诗歌的凭据,可能是你把版本控制搞砸了,或者你正在使用一个有缺陷的诗歌版本。也许如果你发布poetry提供的堆栈跟踪,你会得到一些关于它可能是什么的信息,但对于一个不坐在你椅子上的人来说,调试它很困难。@Arne添加了堆栈跟踪。pip instal package1——索引url“url”,我可以使用pip安装,但不能通过诗歌安装。我会再检查一次,一定是遗漏了什么。那么,错误信息是什么?它找到寄存处了吗?您的凭据是否未设置?包丢失了吗?@Arne sry关于忘记添加错误消息,我收到错误消息,因为package1依赖于package2,而package2与任何版本都不匹配,版本解决失败。但是我可以使用我的私有report中的pip安装这个包,这可能是一堆事情——可能是没有正确设置诗歌的凭据,可能是你把版本控制搞砸了,或者你正在使用一个有缺陷的诗歌版本。也许如果你发布poetry提供的堆栈跟踪,你会得到一些关于它可能是什么的信息,但对于一个不坐在你椅子上的人来说,调试它很困难。@Arne添加了堆栈跟踪。pip instal package1——索引url“url”,我可以使用pip安装,但不能通过诗歌安装。我会再查一次,一定是漏掉了什么。