Which package does this file belong to?
➜ conda activate my-env
(my-env) ➜ cd /path/to/my-env/bin
(my-env) ➜ conda which ./zstd
File '/path/to/my-env/bin/zstd' belongs to
📦 Package: zstd-1.5.6-hb46c0d2_0
🌏 Environment: /path/to/my-env
-
Ensure you have conda-forge added as a channel:
conda config --add channels conda-forge
-
Install the plugin using conda:
conda install conda-which
-
Clone the repository:
git clone https://github.com/kelvinou01/conda-which.git
-
Navigate to the repository directory:
cd conda-which
-
With the target conda environment activated, install the plugin using
pip
:pip install -e .
# Full path
conda which /path/to/my-env/bin/zstd
cd /path/to/my-env
# Relative path
conda which bin/zstd
# Multiple files
conda which bin/zstd bin/ahost lib/cmake/OpenSSL/OpenSSLConfig.cmake
conda activate dev-env
pip install -e .
conda which /path/to/file # Changes to conda-which will immediately show up
conda env create -f tests/environment.yml
conda activate test
pytest tests/test.py
Run actions in a docker container with act
act -j 'test' --container-architecture linux/amd64 -vv