ComicCrawler icon indicating copy to clipboard operation
ComicCrawler copied to clipboard

更新comiccrawler時yt-dlp的版本問題

Open kesdoputr opened this issue 11 months ago • 3 comments

你好,使用pip更新yt-dlp到最新版2025.1.15後再使用 pip install comiccrawler --upgrade --upgrade-strategy eager 會出現以下訊息 Clip390

yt-dlp會被降版回2024.12.23的版本

感謝觀看m(_ _)m

kesdoputr avatar Jan 16 '25 06:01 kesdoputr

這是Python的套件版本衝突。

由於pip把所有套件都裝在同一個資料夾內(以你的例子就是 c:\users\users\appdata\local\programs\python\lib\site-packages\yt_dlp,所以若有個套件在不同的情況被安裝兩種版本,前一個安裝的就會被覆寫。

解決方式是不要用pip,改用更進階的套件管理工具,如uv: https://github.com/astral-sh/uv 它的文件︰ https://docs.astral.sh/uv/guides/tools/

pip install yt-dlp
pip install comiccrawler

改成

uv tool install yt-dlp
uv tool install comiccrawler

我自己目前是用vpip: https://github.com/eight04/vpip

vpip install -g yt-dlp
vpip install -g comiccrawler

eight04 avatar Jan 18 '25 11:01 eight04

comiccrawler有更新的話 如何用 vpip 更新?

seiya2000000 avatar Jul 21 '25 12:07 seiya2000000

comiccrawler有更新的話 如何用 vpip 更新?

假設原本是用這個指令安裝︰

vpip install -g comiccrawler

那就用這個指令更新︰

vpip update -g comiccrawler --latest

詳細文件說明︰https://vpip.readthedocs.io/en/latest/commands.html#update

eight04 avatar Jul 21 '25 13:07 eight04