python - 将 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 找不到它。
解决方案
推荐阅读
- ruby-on-rails - 如何获得随机背景图像
- traefik - Traefik 上的客户端 IP 与 Docker Swarm
- flutter-layout - Flutter:固定底部按钮,中央动态 TextField 随键盘弹出而移动
- python - 在 python 3 中改进我的刽子手游戏代码的建议
- javascript - DjangoTemplate + Javascript - 如何将 javascript 变量与 django 多个值进行比较
- python - 有没有办法根据 y 中的真实标签对特征 X 进行转换?
- php - 如何在容器 docker 中反映主机权限?
- c++ - 通用`count`函数
- c# - 游戏服务器在本地机器上运行,但不在 ubuntu 服务器上
- python - Jupyter Notebook - 导入 Torch