You can install Category Encoders package from both Pip and Conda-forge. But there is one subtle difference in the package in the two repositories. In PyPI, it is: category-encoders In Conda-forge, it is: category_encodersNow with minimal env.yml:
Contents of the file: name: cat_enc channels: - conda-forge dependencies: - scikit-learn - pandas - ipykernel - jupyterlab - category_encodersConda Commands
$ conda remove -n cat_enc --all $ conda env create -f env.yml Collecting package metadata (repodata.json): done Solving environment: done Downloading and Extracting Packages category_encoders-2. | 62 KB | ### | 100% ... python-3.10.6 | 29.0 MB | ### | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done # # To activate this environment, use # # $ conda activate cat_enc # # To deactivate an active environment, use # # $ conda deactivate Retrieving notices: ...working... done (base) $ conda activate cat_enc (cat_enc) $ python -m ipykernel install --user --name cat_enc Installed kernelspec cat_enc in /home/ashish/.local/share/jupyter/kernels/cat_enc (cat_enc) $
Sunday, October 30, 2022
Installing 'Category Encoders' Python Package Using Pip And Conda
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment