mps-youtube / yewtube

yewtube, forked from mps-youtube , is a Terminal based YouTube player and downloader. No Youtube API key required.
GNU General Public License v3.0
8.08k stars 644 forks source link

yt command doesn't work #1264

Closed krishna-r-parmar closed 6 months ago

krishna-r-parmar commented 10 months ago

yt command is not working.

Issue

I have installed yewtube using pip3 install yewtube

After successful installation, the yt command doesn't work and gives back following error: zsh: command not found: yt

Your Environment

python 3.12 pip 23.2.1 MacOS Ventura 13.5.2

keeranbz commented 9 months ago

I had the same issue. I found a post that describes a similar issue with another program, and recommends to add the pip package installation location to your PATH. See post

Solution from post:

To fix, just add ~/.local/bin to your $PATH, for example by adding the following line to your .bashrc file: export PATH="$HOME/.local/bin:$PATH"

After that, restart your shell and things should work as expected.

@krishna-r-parmar .bashrc may be the .zshrc on your system (idk)

krishna-r-parmar commented 9 months ago

I have checked and my path does contains the path to the pip. It still fails to recognize the command. Although standard commands such as pip list, works.

keeranbz commented 9 months ago

Use the following to find the location of the 'yt' script so you can add that folder, where pip installs scripts, to your PATH.

find / -name yt