

If executing pip with sudo, you may want sudo's -H flag. check the permissions and owner of that directory. WARNING: The directory '/Users/Brandon/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. Please check the permissions and owner of that directory. WARNING: The directory '/Users/Brandon/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Latest attempt: Brandons-MacBook-Pro-3:~ Brandon$ sudo pip install -U selenium

I'm trying to mimic this tutorial (4:44 in video) which makes it seems as easy as downloading to desktop, typing in cd Desktop/ then mv geckodriver /usr/local/bin but that obviously isn't working. Side notes: when installing geckodriver I placed in onto my desktop. Is there a new way to do this? I tried following many forms but they only lead to new problems with outdated solutions.
BREW INSTALL FIREFOX MAC PASSWORD
I tried copying the file using sudo cp /path/to/geckodriver /usr/local/bin but after I enter my password I get a "no such file or directory" message again. Old forms answers to this seem to be outdated or an old attempt may be causing a problem for these other ones. The error used to say either "operation not permitted" or give a permissions error but now it says "No such file or directory". I think I have installed selenium correctly after reinstalling a million ways with pip and sudo pip but when I trying to install geckodriver using "mv geckodriver /usr/local/bin" or "mv geckodriver /usr/bin" I get an error.

Trying to install geckodriver on mac for Mozilla firefox.
