使用pyproject.toml文件从私人仓库安装python诗歌

时间:2020-02-12 04:13:07

标签: 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"
url = "url"
default = true

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

我收到错误消息,因为package1依赖于不匹配任何版本的package2,因此版本解析失败 但可以通过我的私人仓库中的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)

0 个答案:

没有答案