pip出错:pipcile不支持url作为包

2024-04-19 14:55:00 发布

您现在位置:Python中文网/ 问答频道 /正文

{{{cdm>

运行pip-compile -v命令时出现以下错误:

pip-compile does not support URLs as packages, unless they are editable. Perhaps add -e option? (constraint was: aldryn-django==1.8.7.0 from https://control.aldyn.com/api/v1/apps/serve/aldryn-django/1.8.7.0/592213b1-e515-4447-8ef0-850713571a42/aldryn-django-1.8.7.0.tar.gz#egg=aldryn-django==1.8.7.0 (from -r requirements.in (line 2)))

我尝试过使用-e选项,但这会导致另一个问题。在

pip.exceptions.InstallationError: https://control.aldryn.com/api/v1/apps/serve/aldryn-django/1.8.7.0/592213b1-e515-4447-8ef0-850713571a42/aldryn-django-1.8.7.0.tar.gz#egg=aldryn-django==1.8.7.0 should either be a path to a local project or a VCS url beginning with svn+, git+, hg+, or bzr+

以下是我的requirements.in文件的简短摘录:

\# <INSTALLED_ADDONS>  # Warning: text inside the INSTALLED_ADDONS tags is auto-generated. Manual changes will be overwritten.
https://control.aldryn.com/api/v1/apps/serve/aldryn-django/1.8.7.0/592213b1-e515-4447-8ef0-850713571a42/aldryn-django-1.8.7.0.tar.gz#egg=aldryn-django==1.8.7.0
...
\# </INSTALLED_ADDONS>

我使用的是基于python:2.7-slim图像的Docker容器。在

requirements.in在另一个类似的docker容器上运行良好。在

我不知道为什么我的,pip-compile不起作用。。。在

你知道吗?在


Tags: appspipdjangohttpscomapieggtar