Which Python Package Owns A Binary?
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 th
Solution 1:
One ugly solution is:
- Rename the file
- Re-install all installed packages one-by-one until the file reappears
Solution 2:
To find which package some file belongs to in a mixed conda/pip environment
- search which package installed by pip contains filename:
pip list | tail -n +3 | cut -d" " -f1 | xargs pip show -f | grep filename_to_find
- but if it was installed via conda you have to do this instead:
grep filename_to_find ~/anaconda3/envs/ENVNAME/conda-meta/*
- replace
filename_to_find
with the filename you need - replace
~/anaconda3
with the path where your conda resides - replace
ENVNAME
with the conda env name you want
(the first recipe is from OP)
Solution 3:
which python
It should give you the right path
Post a Comment for "Which Python Package Owns A Binary?"