【发布时间】:2021-12-15 09:01:51
【问题描述】:
使用virtualenv,我正在开发一个 Dash/Python 应用程序。添加新包后,我运行了
pip freeze > requirements.txt
然后尝试使用 git 将新更改推送到链接的 Heroku 服务器。在此评论之前,服务器上的先前版本正在运行且没有错误。
Heroku 在部署过程中使用pip 安装requirements.txt 中列出的所需包时,出现故障。
-----> 使用 pip 安装需求
...
处理 /opt/concourse/worker/volumes/live/976f8942-f51d-4f0e-7352-2a10f0820d0e/volume/cffi_1625814703974/work
错误:由于 EnvironmentError 无法安装软件包:[Errno 2] 没有这样的文件或目录:'/opt/concourse/worker/volumes/live/976f8942-f51d-4f0e-7352 -2a10f0820d0e/volume/cffi_1625814703974/work'
在requirements.txt中,对应的包显示为:
cffi @ file:///opt/concourse/worker/volumes/live/976f8942-f51d-4f0e-7352-2a10f0820d0e/volume/cffi_1625814703974/work
我在 Google 上搜索过,但在 requirements.txt 中找不到有关使用 @ 的任何信息。这是列表中第一个有 @link 并且 pip 失败的列表,所以这是可疑的。
有谁知道这个@是什么意思(我猜它是指向远程文件的链接),以及如何解决推送失败?
谢谢!
【问题讨论】:
标签: python heroku deployment pip requirements.txt