Week Ending 11/6/2020

I was having some trouble running pip, getting an error like:

~/.pyenv/shims/pip: line 21: /usr/local/Cellar/pyenv/1.2.20/libexec/pyenv: No such file or directory

Saw this online:

https://github.com/Homebrew/brew/issues/1457

and a pyenv rehash fixed it

Week Ending 11/6/2020

I probably learned this a long time ago, but I didn't remember. This is a quick way to sort on the second element from a list of lists:

sorted(vector_list, key = lambda x: -x[1])