Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install scikit-multilearn using Conda

To install scikit-multilearn, I have tried the following commands with no luck:

conda install scikit-multilearn

or,

conda install -c condo-forge scikit-multilearn

The official website of scikit-multilearn propose using pip:

pip install scikit-multilearn

How should I install a python package when I don't find it on Anaconda repository? Would it be OK if I use pip occasionally, while my default package manager is conda?

like image 1000
Sahar Avatar asked Sep 01 '25 18:09

Sahar


2 Answers

It's fine for you to use pip along with conda. It's made to work this way. You have to be aware that not every package is on conda but only on pip. If you do conda env export > environment.yml, you will see that there is a mix of conda packages and pip.

like image 79
Dat Tran Avatar answered Sep 04 '25 07:09

Dat Tran


I eventually installed scikit-multilearn using pip:

pip install scikit-multilearn

However, I got the following import error while trying to import it:

ImportError: No module named builtins

To solve this, I upgraded the future package:

$pip install future --upgrade

Then, I successfully imported scikit-multilearn.

like image 42
Sahar Avatar answered Sep 04 '25 07:09

Sahar