gpt4 book ai didi

python - AWS Elastic Beanstalk chown PythonPath 错误

转载 作者:行者123 更新时间:2023-12-04 16:27:04 26 4
gpt4 key购买 nike

我在 AWS 的弹性 beanstalk 上部署了一个 Web 应用程序,但遇到了同样的错误:
[StageApplication]. Stop running the command. Error: chown /var/app/staging/venv/bin/python: no such file or directory.
我在我的环境配置中看到属性:PYTHONPATH :/var/app/venv/staging-LQM1lest/bin
我的应用程序使用命令“python applicaiton.py”在本地运行得非常好。

关于如何解决这个问题的任何建议?

最佳答案

确保您没有将本地 venv 推送到 EB 引用的 Git 存储库。我试图从另一台机器进行更新,但不小心将其推送到 master,这导致了这个确切的错误。即使在添加到 gitignore 文件后,我也必须使用以下内容将其删除。试一试和/或仔细检查。

git rm -r --cached venv
git commit -m 'Remove the now ignored directory venv'
git push origin master

关于python - AWS Elastic Beanstalk chown PythonPath 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61805345/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com