Я написал плагин стихов и хранил его в компании Pypi Repo. Я работаю над проектом Python, используя поэзию и хочу использовать свой плагин. Я, хотя и указал компанию Repo с помощью tool.poetry.source , а затем добавление строки в
[tool.poetry.requires-plugins]
mycoolplugin = ">=1.0.3"
< /code>
будет достаточно, чтобы получить поэзию для установки плагина, но он не работал, как я ожидал. Я начал с: < /p>
pip install mycoolplugin -i https://artifactory.compay.com/artifact ... ypi/simple
Looking in indexes: https://artifactory.compay.com/artifact ... ypi/simple
Collecting mycoolplugin
Downloading https://artifactory.compay.com/artifact ... ne-any.whl (10 kB)
INFO: pip is looking at multiple versions of mycoolplugin to determine which version is compatible with other requirements. This could take a while.
Downloading https://artifactory.compay.com/artifact ... ne-any.whl (10 kB)
ERROR: Cannot install mycoolplugin==1.0.2 and mycoolplugin==1.0.3 because these package versions have conflicting dependencies.
The conflict is caused by:
mycoolplugin 1.0.3 depends on poetry==2.1.3
mycoolplugin 1.0.2 depends on poetry==2.1.1
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip to attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/de ... -conflicts
< /code>
Но я работаю в Venv с поэзией 2.1.3 Так почему бы не выбрать правильный? Нет двусмысленности.poetry --version
Poetry (version 2.1.3)
< /code>
Итак, я подумал, что, возможно, PIP не может сказать, что уже есть поэзия, поэтому я запустил ее с поэзией, к сожалению, эта командная строка дает то же самое, что и то же самое: < /p>
poetry run python3 -m pip install mycoolplugin -i https://artifactory.compay.com/artifact ... ypi/simple`
< /code>
Итак, тогда я попытался установить конкретную версию, которую хотел: < /p>
poetry run python3 -m pip install mycoolplugin==1.0.3 -i https://artifactory.company.com/artifac ... ypi/simple
Looking in indexes: https://artifactory.company.com/artifac ... ypi/simple
Collecting mycoolplugin==1.0.3
Using cached https://artifactory.company.com/artifac ... ne-any.whl (10 kB)
INFO: pip is looking at multiple versions of mycoolplugin to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement poetry==2.1.3 (from mycoolplugin) (from versions: none)
ERROR: No matching distribution found for poetry==2.1.3
Что здесь не так?[project]
name = "mycoolplugin"
...
dependencies = [ "poetry (==2.1.3)", ...
...
[build-system]
requires = ["poetry-core>=2.0"]
Подробнее здесь: https://stackoverflow.com/questions/797 ... stribution
Невозможно установить наш плагин поэзии: PIP говорит, что не найдено соответствующего распределения ⇐ Python
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
ОШИБКА: не найдено соответствующего распределения для трансформаторов == 4.20.1.
Anonymous » » в форуме Python - 0 Ответы
- 19 Просмотры
-
Последнее сообщение Anonymous
-
-
-
Для тензорного потока в Python3.12 не найдено соответствующего распределения.
Anonymous » » в форуме Python - 0 Ответы
- 13 Просмотры
-
Последнее сообщение Anonymous
-