Heroku/Git推送依赖性

2024-10-01 17:27:42 发布

您现在位置:Python中文网/ 问答频道 /正文

我想把我的Django网站推到Heroku。说到这种依赖性,我得到了一个错误:

remote:          Downloading https://files.pythonhosted.org/packages/2e/83/89b5adbc37d1bbf7b486a2c1c00e8037e6f801e8c053c4897bb82d9510c6/PyAutoGUI-0.9.36.tar.gz (46kB)
remote:            Complete output from command python setup.py egg_info:
remote:            Traceback (most recent call last):
remote:              File "<string>", line 1, in <module>
remote:              File "/tmp/pip-build-pfkxr3gz/PyAutoGUI/setup.py", line 6, in <module>
remote:                version=__import__('pyautogui').__version__,
remote:              File "/tmp/pip-build-pfkxr3gz/PyAutoGUI/pyautogui/__init__.py", line 115, in <module>
remote:                from . import _pyautogui_x11 as platformModule
remote:              File "/tmp/pip-build-pfkxr3gz/PyAutoGUI/pyautogui/_pyautogui_x11.py", line 7, in <module>
remote:                from Xlib.display import Display
remote:            ModuleNotFoundError: No module named 'Xlib'
remote:
remote:            ----------------------------------------
remote:        Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-pfkxr3gz/PyAutoGUI/
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to aaronmaziewebsite.
remote:
To https://git.heroku.com/aaronmaziewebsite.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/aaronmaziewebsite.git'

我的机器上已经安装了PyAutoGUI和Xlib

我将遵循以下教程:

https://www.youtube.com/watch?v=4DggiEkbCTg

https://www.codingforentrepreneurs.com/blog/go-live-with-django-project-and-heroku/

有什么建议吗


Tags: piptoinpyhttpsbuildremoteline

热门问题