bash:yt-dlp:コマンドが見つかりません。 yt-dlpがパスにありません。

bash:yt-dlp:コマンドが見つかりません。 yt-dlpがパスにありません。

yt-dlpを使用してダウンロードしようとすると、Ubuntu端末にこのエラーメッセージが表示されます。

bash: yt-dlp: command not found

このコマンドを使用してyt-dlpをインストールします。

python3 -m pip install -U yt-dlp

このメッセージを受け取ったとき

WARNING: The scripts mid3cp, mid3iconv, mid3v2, moggsplit, mutagen-inspect and mutagen-pony are installed in '/home/appbox/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script yt-dlp is installed in '/home/appbox/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

yt-dlpand mid3cp、、、mid3iconvおよびmid3v2PATHをmoggsplit解決して追加する方法はmutagen-inspectmutagen-pony

ベストアンサー1

editor ~/.bashrc

PATH変数宣言を検索または生成したら、次の操作を行います。

export PATH=~/.local/bin:$PATH

おすすめ記事