Which python package owns a binary?

谁说我不能喝 提交于 2019-12-24 15:46:13

问题


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:

  1. Rename the file
  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!