python - 在 Heroku 上部署 Django
问题描述
我正在尝试在 heroku 上部署我的 django 应用程序并不断收到此错误消息:
----------------------------------------
ERROR: Command errored out with exit status 1: /app/.heroku/python/bin/python
-u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xo9jsddf/psycopg2/setup.py'"'"';
__file__='"'"'/tmp/pip-install-xo9jsddf/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"',
open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__,
'"'"'exec'"'"'))' install --record /tmp/pip-record-xuxym03s/install-record.txt --single-version-externally-managed --compile --install-headers
/app/.heroku/python/include/python3.9/psycopg2
Check the logs for full command output.
! Push rejected, failed to compile Python app.
! Push failed
我有我的 Procfile 和 requirements.txt。任何帮助表示赞赏!
解决方案
推荐阅读
- javascript - Shift选项卡不保留元素焦点
- python - 如何将 3 个列表值与 If 条件进行比较
- c# - 为什么 xUnit 测试没有变成绿色?
- python - 使用 unittest 测试烧瓶应用程序时出错
- ruby - 使用 OptParser 在 Ruby 脚本中访问命令行选项文字
- r - 如果存在多行,则 R_exclude 具有包含值的列的行
- android - 运行从 android APK 编译的 ELF 二进制文件需要什么?(了解 android 内部结构)
- sql - 如何将 YYYYMM 转换/提取为年份和月份名称?Teradata SQL
- ibm-doors - 如何创建一个视图来显示单个项目下所有正式模块中的所有现有属性 DOORS?
- r - rtweet“search_tweets”函数不返回坐标