Documentation seems to clearly indicate that to install in /usr/local/bin you would need root privileges.
I followed the manual to install cutadapt
It should be installed in /usr/local/bin
But it shows
Requirement already up-to-date: cutadapt in /Users/yc/Library/Python/2.7/lib/python/site-packages
Any suggestions??
Thanks so much~~
1 answer
The documentation on the installation of cutadapt is just a bit misleading, as far as I'm concerned. Cutadapt was just installed as a Python package. The cutadapt executable is probably in /Users/yc/Library/Python/2.7/bin.
If that folder is already in your PATH you can just type cutadapt to run the program. Otherwise, you'll have to type the full path. /Users/yc/Library/Python/2.7/bin/cutadapt
As long as you're the only user using the program, it will work fine.
Of course, without root privileges, you could never install to /usr/local/bin. I just find the documentation somewhat misleading because it indicates that cutadapt would be installed to $HOME/.local/bin, without root privileges. This is not the case for my installation. The program is installed to the bin subdirectory of Python. I did some more research, and found that pip will install executables to the path returned by sysconfig.get_path("scripts"), which in my case is the bin subdirectory of Python.
That is good to know. The original question may have arisen because of OS X (at least that is my guess).
Thanks~~ I'll choose to type the full path….. Not much pain...
Log in to answer this question.
If you don't have root privileges then you would not be able to install in
/usr/local/bin/. If there is a cutadapt in that directory you can use it from there.Note: If you are on OS X (which I think is the case) then a
/usr/local/bindirectory may not exist by default (generally present on linux). If you do have root/sudo then you could create that directory and then cutadapt can be installed there.