Coccigrep (https://pypi.org/project/coccigrep/) seems to be a great tool to search through C code. However, when I install it using pip install coccigrep, it isn't found:

> coccigrep
coccigrep: command not found

I am on Ubuntu 18.04. How do I install this?

1 Answer 1


It seems to be a $PATH related issue(message: command not found). pip must be installing things on ~/.local/bin or ~/bin, the bin directories inside your home.

You will have to add that location by editing the .profile file inside your home, and adding the following line at the end of that file:


After that, source ~/.profile should be enough to reload your profile file.

Take a look at the Bug #1588562 link below. It should be fixed in Ubuntu 18.04 but there is a guy reporting that it's not.

Related Stuff:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .