m1guelpf / yt-whisper

Using OpenAI's Whisper to automatically generate YouTube subtitles
MIT License
1.37k stars 140 forks source link

Command not runnable after install #27

Open sloganking opened 2 years ago

sloganking commented 2 years ago

After running

pip install git+https://github.com/m1guelpf/yt-whisper.git

and

yt_whisper "https://www.youtube.com/watch?v=dQw4w9WgXcQ"

I get

bash: yt_whisper: command not found

Does python have a directory I need to add to my path?

sloganking commented 2 years ago

It seems to install in my /home/username/.local/bin/yt_whisper. I am not sure if this directory should be added to my system path, since it has a lot of other python scripts in it, but I can run it since I've found it now.

Not sure if this repo wants to add path location to it's docs.

BaseInfinity commented 1 year ago

I just ran into this as well.

I fixed this by adding the following line to my ~/.bashrc or ~/.bash_profile: export PATH="~/.local/bin:$PATH"

Alternatively you can install the package globally: sudo -H pip install git+https://github.com/m1guelpf/yt-whisper.git

mrpassiontea commented 1 year ago

@sloganking From your cmd try cd to your C:/Users//AppData/Roaming/Python//Scripts and see if yt_whisper is there. Then run the yt_whisper command.

image I'm using Python v3.9 so for me it's /AppData/Roaming/Python/Python39/Scripts.

image

From my CLI: image

I hope that helps!