亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

Heroku 無法安裝 av (pyav)

Heroku 無法安裝 av (pyav)

阿波羅的戰車 2023-06-20 17:25:38
我一直在嘗試設置我的 Python Web 應用程序,該應用程序使用 opencv、tensorflow 和 av 模塊,但一直失敗。我已經嘗試使用Aptfile安裝幾個 Ubuntu 庫(libsm6, libxrender1等),但安裝仍然失敗。安裝失敗后,heroku 服務器決定從源代碼構建 av 模塊,但同樣失敗,gcc 在這里失?。簊rc/av/codec/codec.c:4003:19: warning: implicit declaration of function ‘av_codec_iterate’; did you mean ‘av_codec_next’? [-Wimplicit-function-declaration]    __pyx_v_ptr = av_codec_iterate((&__pyx_v_opaque));                ^~~~~~~~~~~~~~~~                av_codec_nextsrc/av/codec/codec.c:4003:17: warning: assignment makes pointer from integer without a cast [-Wint-conversion]    __pyx_v_ptr = av_codec_iterate((&__pyx_v_opaque));                ^src/av/codec/codec.c: In function ‘__pyx_pymod_exec_codec’:src/av/codec/codec.c:6117:36: error: ‘AV_CODEC_CAP_HARDWARE’ undeclared (first use in this function); did you mean ‘AV_CODEC_CAP_DR1’?__pyx_t_7 = __Pyx_PyInt_From_int(AV_CODEC_CAP_HARDWARE); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 121, __pyx_L1_error)                                    ^~~~~~~~~~~~~~~~~~~~~                                    AV_CODEC_CAP_DR1src/av/codec/codec.c:6117:36: note: each undeclared identifier is reported only once for each function it appears insrc/av/codec/codec.c:6138:36: error: ‘AV_CODEC_CAP_HYBRID’ undeclared (first use in this function); did you mean ‘AV_CODEC_CAP_DR1’?__pyx_t_7 = __Pyx_PyInt_From_int(AV_CODEC_CAP_HYBRID); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 125, __pyx_L1_error)                                    ^~~~~~~~~~~~~~~~~~~                                    AV_CODEC_CAP_DR1error: command 'gcc' failed with exit status 1有沒有人經歷過這個?或者有在 Heroku 中使用 av/pyav 的經驗嗎?請告訴我任何我錯過的事情。謝謝。
查看完整描述

1 回答

?
白衣染霜花

TA貢獻1796條經驗 獲得超10個贊

事實證明,使用 Herokurequirements.txt比使用Pipfile. 更改安裝文件后,部署過程順利進行。



查看完整回答
反對 回復 2023-06-20
  • 1 回答
  • 0 關注
  • 170 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號