问题
I'm having problems with ~/.local/share/miniconda3/envs/nndl/bin/tput
- it produces output different to my system version, breaking some ANSI colouring.
I'm trying to track down the package which provides this offensive version.
I've tried (source):
pip list | tail -n +3 | cut -d" " -f1 | xargs pip show -f | grep tput
But the binary is not shown.
How do I find which python package includes a binary?
回答1:
One ugly solution is:
- Rename the file
- Re-install all installed packages one-by-one until the file reappears
回答2:
which python
It should give you the right path
来源:https://stackoverflow.com/questions/55864568/which-python-package-owns-a-binary