【发布时间】: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