Looks like you're on an Linux/Unix box and you're not root ... which means you don't have permission to put things in /usr/local/bin
(or a lot of other places).
Update for comments:
Since OS X is (under the hood) FreeBSD Unix, there is still the basic concept of 'root'. Your admin account is capable of doing root-type things, but it doesn't automatically escalate privileges (which is a Good Thing). The command you are looking for is sudo
, which provides temporary root privileges. To do it for a single command (the most normal case), simply prefix the command with sudo
, e.g. sudo python setup.py install
. You will probably be prompted to supply your password again (not root's password, but your own) and then the command will be executed. sudo
will only prompt you the first time (or every N minutes) for a password.
I noted here that in 10.5 and later, sudo
will only work if your admin account has a password. If it doesn't, then you will have to set one before this will work.
If you have a whole bunch of stuff you need to do as root, try sudo /bin/bash
(or you shell of choice), which will give you a new shell (as a child process of the other shell) which has full root privileges. Note Well: if you are not use to living at a root-prompt, this is not a great idea. One slip of the keyboard and you can nail your system to the outhouse wall. So be careful out there!
python setup.py config --prefix=/path/to/directory/you/have/write/permissions/ && python setup.py install
may help – Scarcepython3 setup.py install --prefix=~/.local/
which install it in~/.local/bin/
(ensure set~/.local/bin
in$PATH
too), no need install in/usr/local/bin/
without good reason. – Fabric