<html><head></head><body><div>Thanks, Akkana.</div><div>There are many things that you wrote which are helpful.</div><div>I like the intro for pip and what pip is and other bits about pip.</div><div>It's good to know that I can safely ignore the warning about the KDE wallet and the keyring and also about what that is.</div><div>I appreciate most the description about PATH and how to get started with it. I found more info at <a href="https://www.howtogeek.com/658904/how-to-add-a-directory-to-your-path-in-linux/">https://www.howtogeek.com/658904/how-to-add-a-directory-to-your-path-in-linux/</a> which gives an intro in a bit more depth.</div><div><br></div><div>Here are my results:</div><div><br></div><div>This is from len4, where yt-dlp was already working</div><div><a href="mailto:ll@leno">ll@len4</a>:~$ echo $PATH</div><div>/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games</div><div><a href="mailto:ll@leno">ll@len4</a>:~$ </div><div><a href="mailto:ll@len4">ll@len4</a>:~$ type -a yt-dlp</div><div>yt-dlp is /usr/local/bin/yt-dlp</div><div><br></div><div>This is from leno</div><div><div><a href="mailto:ll@leno">ll@leno</a>:~$ echo $PATH</div><div>/home/ll/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games</div><div><a href="mailto:ll@leno">ll@leno</a>:~$ </div><div><a href="mailto:ll@leno">ll@leno</a>:~$ type -a yt-dlp</div><div>yt-dlp is /home/ll/.local/bin/yt-dlp</div><div>...</div><div>ll@leno:~/A-Video-260/eMata$ yt-dlp <a href="https://www.youtube.com/watch?v=O8NqgtL5a4I">https://www.youtube.com/watch?v=O8NqgtL5a4I</a></div><div>bash: /usr/bin/yt-dlp: No such file or directory</div><div>ll@leno:~/A-Video-260/eMata$ ~/.local/bin/yt-dlp <a href="https://www.youtube.com/watch?v=O8NqgtL5a4I">https://www.youtube.com/watch?v=O8NqgtL5a4I</a></div><div>[youtube] Extracting URL: <a href="https://www.youtube.com/watch?v=O8NqgtL5a4I">https://www.youtube.com/watch?v=O8NqgtL5a4I</a></div><div>... has already been downloaded</div><div><a href="mailto:ll@leno">ll@leno</a>:~/A-Video-260/eMata$ echo $PATH</div><div>/home/ll/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games</div><div><a href="mailto:ll@leno">ll@leno</a>:~/A-Video-260/eMata$ echo $HOME</div><div>/home/ll</div><div><a href="mailto:ll@leno">ll@leno</a>:~/A-Video-260/eMata$ export PATH=$HOME/.local/bin:$PATH</div><div><a href="mailto:ll@leno">ll@leno</a>:~/A-Video-260/eMata$ echo $PATH</div><div>/home/ll/.local/bin:/home/ll/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games</div><div>ll@leno:~/A-Video-260/eMata$ yt-dlp <a href="https://www.youtube.com/watch?v=O8NqgtL5a4I">https://www.youtube.com/watch?v=O8NqgtL5a4I</a></div><div>... has already been downloaded</div><div><a href="mailto:ll@leno">ll@leno</a>:~/A-Video-260/eMata$ </div><div><br></div></div><div>Notes:</div><div>1 The $PATH on len4 and the $PATH on leno were the same, except leno had an extra in front, i.e. <span style="font-family: serif;">/home/ll/bin Now, leno has two extras in front.</span></div><div>2 yt-dlp is in usr/local/bin/ on len4 whereas yt-dlp is in <span style="font-family: serif;">/home/ll/.local/bin/ on leno</span></div><div> I'm guessing that yt-dlp on len4 was not installed using pip??</div><div>3 In the last several lines, I tested trying to run yt-dlp, then added to the path, confirmed the path change, then confirmed that yt-dlp is working with the new path.</div><div><br></div><div>I'm feeling grateful.</div><div>LeRoy</div><div><span><pre>-- <br></pre><span style="caret-color: rgb(46, 52, 54); color: rgb(46, 52, 54); font-family: Cantarell; font-size: 18.66666603088379px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none; display: inline !important; float: none;">There is something glorious birthing within all of us.</span><br style="caret-color: rgb(46, 52, 54); color: rgb(46, 52, 54); font-family: Cantarell; font-size: 18.66666603088379px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none;"><span style="caret-color: rgb(46, 52, 54); color: rgb(46, 52, 54); font-family: Cantarell; font-size: 18.66666603088379px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important; background-color: rgb(255, 255, 255);">I am the Love of God, no matter what.</span><div><span style="background-color: rgb(255, 255, 255);">BSA<br style="caret-color: rgb(46, 52, 54); color: rgb(46, 52, 54); font-family: Cantarell; font-size: 18.66666603088379px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; text-decoration: none;"><span style="caret-color: rgb(46, 52, 54); color: rgb(46, 52, 54); font-family: Cantarell; font-size: 18.66666603088379px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">LeRoy Diener</span></span><br style="caret-color: rgb(46, 52, 54); color: rgb(46, 52, 54); font-family: Cantarell; font-size: 18.66666603088379px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none;"><span style="caret-color: rgb(46, 52, 54); color: rgb(46, 52, 54); font-family: Cantarell; font-size: 18.66666603088379px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none; display: inline !important; float: none;">213-LEROYIZ</span><br style="caret-color: rgb(46, 52, 54); color: rgb(46, 52, 54); font-family: Cantarell; font-size: 18.66666603088379px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none;"><span style="caret-color: rgb(46, 52, 54); color: rgb(46, 52, 54); font-family: Cantarell; font-size: 18.66666603088379px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none; display: inline !important; float: none;">213-537-6949</span><div style="caret-color: rgb(46, 52, 54); color: rgb(46, 52, 54); font-family: Cantarell; font-size: 18.66666603088379px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none;"><a href="https://leroydiener.com/" title="Click to open https://leroydiener.com/">https://leroydiener.com</a><br></div></div></span></div><div><br></div><div>On Tue, 2023-09-05 at 09:34 -0600, Akkana Peck wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>LeRoy Diener writes:<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Success, but also confusion.<br></div></blockquote><div>[ ...<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Prior to asking how to install with pip, I searched on my own for how<br></div><div>to do that. I got results<br></div><div>like <a href="https://pip.pypa.io/en/stable/cli/pip_install/">https://pip.pypa.io/en/stable/cli/pip_install/</a> which were<br></div><div>confusing to me. It did not make sense to me to begin an install<br></div><div>command with "python." So, I asked the generic question.<br></div></blockquote><div><br></div><div>pip is Python's installation program, but it is itself written in Python. Some Pythonistas think all Python programs should be run with python -m programname, so in this case, python -m pip. I'm not sure why they advocate all that extra typing; maybe on some platforms (Windows?), installing pip doesn't include an executable called pip so people have to type the extra python -m. At any rate, on Linux there's no need (as you discovered).<br></div><div><br></div><div>Searching for pip advice, you'll also find other complications, like the debate about running in a virtualenv vs. running with --user vs. running under sudo. For a long time pip didn't have the mode where you can just run it as a regular user (like you ultimately did), so anybody installing with pip had to choose between these three imperfect options.<br></div><div><br></div><div>So don't feel bad about being confused by pip installs. It's better now, but used to be super confusing.<br></div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div> What should I know about the window for KDE Wallet Service?<br></div><div>4 A warning showed keyring is skipped.<br></div><div> What should I know about the keyring being skipped?<br></div></blockquote><div><br></div><div>I see this sometimes with gtk/gnome programs. Some programs assume you're running a full gnome environment, and if you're missing parts of it (like not running whatever keyring service gnome expects) you'll get warnings spewed to standard output.<br></div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>5 A warning showed installed in '/home/ll/.local/bin' which is not on<br></div><div>PATH<br></div><div> I'm familiar with the concept of path from my experience with DOS<br></div><div>years ago. I have not done anything yet with path in Linux. Are there<br></div><div>any recommendations for me for path? Is not good to get started? Any<br></div><div>approach best?<br></div></blockquote><div><br></div><div>That's something you do need to know.<br></div><div><br></div><div>PATH is the environment variable that tells the system where to look when you type a command. For instance, if you type "cat /etc/password", the system has to figure out what you mean by "cat" -- what program to run. So it looks in your $PATH environment variable, and then looks for a file named "cat" in each of the directories specified there, in order (so the first one wins).<br></div><div><br></div><div>You can see your PATH by typing: echo $PATH<br></div><div>It might look something like:<br></div><div>/usr/local/bin:/usr/bin:/bin<br></div><div><br></div><div>Colon : is the path separator, so with this path, if you type yt-dlp, it will look first for a file called /usr/local/bin/yt-dlp. Not finding that, it will look for a file /usr/bin/yt-dlp. And so on. It will run the first one it finds, and won't look any farther.<br></div><div><br></div><div>Since you now know that pip installs things to /home/ ll/.local/bin, you want to have that in your PATH, so you'll be able to type yt-dlp rather than /home/ ll/.local/bin/yt-dlp. The most common way to do this is to edit your shell initialization file. If you're using bash, you could put it in one of the files bash runs once, at login time:<br></div><div>export PATH=$HOME/.local/bin:$PATH<br></div><div>That tells bash to take whatever its default PATH is, stick $HOME/.local/bin at the beginning, and export it so it wil be visible to other programs your login shell might run. Putting it at the beginning means when you run yt-dlp, it will find the one in .local/bin first, before something that's in /usr/bin or wherever.<br></div><div><br></div><div>Or you could set it explicitly in .bashrc, e.g.<br></div><div>export PATH=$HOME/.local/bin:/usr/local/bin:/usr/bin:/bin<br></div><div>but then you have to make sure the path includes everything you'll ever want to run.<br></div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>6 I tried to run yt-dlp from the directory where I want to download a<br></div><div>video into. That failed.<br></div></blockquote><div><br></div><div>That's why you need it in your PATH.<br></div><div><br></div><div> ...Akkana<br></div><div>_______________________________________________<br></div><div>nmglug mailing list<br></div><div><a href="mailto:nmglug@lists.nmglug.org">nmglug@lists.nmglug.org</a><br></div><div><a href="http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org">http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org</a><br></div></blockquote></body></html>