首页 > 解决方案 > 将 pip 之外的包添加到弹性豆茎

问题描述

我正在尝试使用 setup.py 在弹性 beantalk 上安装 django-betterforms。git repo 位于: https ://github.com/jpic/django-betterforms.git

在本地机器上,它很好,但我似乎无法获得弹性豆茎来安装它。我在 requirements.txt 中添加了这一行:-e git://github.com/jpic/django-git.betterforms

我在日志中得到了这个: Extracting django_betterforms-1.2.2-py3.8.egg to /var/app/venv/staging-LQM1lest/lib/python3.8/site-packages django-betterforms 1.2.2 已经是活动的easy-install.pth 中的版本

其中说明 django-betterforms 已安装。

另外,在做 cat easy-install.pth 我得到:./django_betterforms-1.2.2-py3.8.egg

但是,稍后在日志中 AWS 抛出:ModuleNotFoundError: No module named 'betterforms'

另外,如果我尝试 ssh 进入环境并尝试导入更好的表单,python 找不到它。

标签: pythondjangoamazon-web-servicesamazon-elastic-beanstalk

解决方案


推荐阅读