【问题标题】:How to fix "exit status 1 " error when deploying on digital ocean在数字海洋上部署时如何修复“退出状态 1”错误
【发布时间】:2021-10-05 02:44:51
【问题描述】:

我正在尝试在数字海洋上部署一个 django 网站。我能够将我的项目从 GitHub 克隆到数字海洋上的 droplet。我克隆的这个 web 项目有 requirements.txt 文件。当我在 other 中运行命令 pip install -r requirements.txt 以安装我的项目中的所有软件包时,软件包安装到一半并返回错误消息 ERROR: Command errored out with exit status 1,如附图所示。另外,我在本地使用 MySQL,但我想在实时服务器上使用 postgrel。我不知道为什么我会收到错误消息?我找不到哪里出错了。

【问题讨论】:

  • 如果您检查错误消息的其余部分,它会显示OSError: mysql_config not found。所以你可能想检查你的数据库配置。此外,在您的问题中添加回溯作为文本,以便更容易阅读/帮助。

标签: django postgresql digital-ocean mysql-python git-bash


【解决方案1】:

最后,我能够通过在运行安装之前从 requirements.txt 填充中删除 MySQL 客户端和 pschopg2 来解决此问题

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-03-14
    • 2021-01-08
    • 2019-07-12
    • 1970-01-01
    • 2015-06-29
    • 1970-01-01
    • 2021-08-13
    相关资源
    最近更新 更多