有谁知道是什么原因导致以下错误:(我使用vercel在线部署我的django代码)

问题描述 投票:0回答:1

错误:子进程退出并出现错误

× 获取构建wheel的要求未成功运行。│退出代码:1╰─> [35行输出]/tmp/pip-build-env-l6u27ub6/overlay/lib/python3.9/site-packages/setuptools /config/setupcfg.py:293: _DeprecatedConfig: setup.cfg 中已弃用的配置!!

  \\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*
  The license_file parameter is deprecated, use license_files instead.

  By 2023-Oct-30, you need to update your project and remove deprecated calls
  or your builds will no longer be supported.

  See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
  \\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*\\\*

!!parsed = self.parsers.get(option_name, lambda x: x)(value)运行egg_infowriting psycopg2.egg-info/PKG-INFO将dependency_links写入psycopg2.egg-info/dependency_links.txt将顶级名称写入psycopg2。鸡蛋信息/top_level.txt

错误:未找到 pg_config 可执行文件。

从源代码构建 psycopg2 需要 pg_config。请将包含 pg_config 的目录添加到 $PATH 或使用选项指定完整的可执行路径:

python setup.py build_ext --pg-config /path/to/pg_config build ...

或使用“setup.cfg”中的 pg_config 选项。

如果您不想从源代码构建 psycopg2,请安装 PyPI'psycopg2-binary' 软件包。

有关更多信息,请检查“doc/src/install.rst”文件(也位于

)。

[输出结束]

注意:此错误源自子进程,并且可能不是 pip.error: subprocess-exited-with-error 的问题

注意:此错误源自子进程,并且可能不是 pip.Traceback 的问题(最近一次调用最后一次):File "/vercel/path0/manage.py", line 11, in mainfrom django.core.management import execute_from_command_lineModuleNotFoundError: No module named 'django' 上述异常是导致以下异常的直接原因:Traceback (most最近一次调用最后):File "/vercel/path0/manage.py", line 22, in

main()File " /vercel/path0/manage.py”,第 13 行,在 mainraise 中 ImportError(ImportError: Couldn't import Django。您确定它已安装并在您的 PYTHONPATH 环境变量中可用吗?您是否忘记激活虚拟环境?错误:命令“./build_files.sh”以 1 退出

我已经安装了psycopg2-binary==2.9.6但是还是不行。

django github subprocess vercel railway
1个回答
0
投票
是的,我也有同样的错误,你找到解决办法了吗

© www.soinside.com 2019 - 2024. All rights reserved.