title: How to install geckodriver in Mac terminal? Permission, operation not permitted and no such file directory errors
body: <p>Trying to install geckodriver on mac for Mozilla firefox. 
  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. The error used to say either "operation not permitted" or give a permissions error but now it says "No such file or directory". Old forms answers to this seem to be outdated or an old attempt may be causing a problem for these other ones.</p>
  
  <p>I tried copying the file using <code>sudo cp /path/to/geckodriver /usr/local/bin</code> but after I enter my password I get a "no such file or directory" message again. </p>
  
  <p>Is there a new way to do this? I tried following many forms but they only lead to new problems with outdated solutions. </p>
  
  <p>Side notes: when installing geckodriver I placed in onto my desktop.  I'm trying to mimic this tutorial <a href="https://www.youtube.com/watch?v=BGU2X5lrz9M" rel="nofollow noreferrer">https://www.youtube.com/watch?v=BGU2X5lrz9M</a>  (4:44 in video) which makes it seems as easy as downloading to desktop, typing in <code>cd Desktop/</code>  then <code>mv geckodriver /usr/local/bin</code> but that obviously isn't working.</p>
  
  <p>Latest attempt:</p>
  
  <pre><code>Brandons-MacBook-Pro-3:~ Brandon$ sudo pip install -U selenium 
  Password: 
  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. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. 
  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. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. 
  Requirement already up-to-date: selenium in ./anaconda3/lib/python3.6/site-packages (3.141.0) 
  Requirement already satisfied, skipping upgrade: urllib3 in ./anaconda3/lib/python3.6/site-packages (from selenium) (1.22) 
  Brandons-MacBook-Pro-3:~ Brandon$ sudo -H pip intall -U selenium 
  ERROR: unknown command "intall" - maybe you meant "install"
  Brandons-MacBook-Pro-3:~ Brandon$ sudo -H pip install -U selenium
  Requirement already up-to-date: selenium in ./anaconda3/lib/python3.6/site-packages (3.141.0) 
  Requirement already satisfied, skipping upgrade: urllib3 in ./anaconda3/lib/python3.6/site-packages (from selenium) (1.22) 
  Brandons-MacBook-Pro-3:~ Brandon$ /usr/bin
  -bash: /usr/bin: is a directory
  Brandons-MacBook-Pro-3:~ Brandon$ mv geckodriver /usr/local/bin 
  mv: rename geckodriver to /usr/local/bin/geckodriver: No such file or directory 
  Brandons-MacBook-Pro-3:~ Brandon$ mv geckodriver /usr/bin
  mv: rename geckodriver to /usr/bin/geckodriver: No such file or directory
  Brandons-MacBook-Pro-3:~ Brandon$ export PATH=$PATH:/path/to/geckodriver
  Brandons-MacBook-Pro-3:~ Brandon$ mv geckodriver /usr/local/bin
  mv: rename geckodriver to /usr/local/bin/geckodriver: No such file or directory 
  Brandons-MacBook-Pro-3:~ Brandon$ sudo nano /etc/paths
  Password: 
  Sorry, try again. 
  Password:
  Brandons-MacBook-Pro-3:~ Brandon$ export PATH=$PATH:/path/to/geckodriver
  Brandons-MacBook-Pro-3:~ Brandon$ export $PATH
  -bash: export: `/Users/Brandon/anaconda3/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/path/to/geckodriver:/path/to/geckodriver': not a valid identifier 
  Brandons-MacBook-Pro-3:~ Brandon$ mv geckodriver /usr/local/bin 
  mv: rename geckodriver to /usr/local/bin/geckodriver: No such file or directory
  Brandons-MacBook-Pro-3:~ Brandon$ sudo cp /path/to/geckodriver /usr/local/bin Password: 
  cp: /path/to/geckodriver: No such file or directory
  </code></pre>