Teichlab / cellphonedb

MIT License
339 stars 105 forks source link

problems about install #240

Closed Portulaca666 closed 3 years ago

Portulaca666 commented 3 years ago

Sorry to borther you ! I had one question about install . Well , my python's version is 3.7 , and I had set up a new conda enviroment with conda create -n cellphoneDB python=3.7 . When i run the pipeline in github ,I got the following error . image Then I did my best to conda install sklearn , but I found that is not easy . image Do someone got the same error with me ?Who can help me ,please !

prete commented 3 years ago

Hi, CellphoneDB is using a deprected sklearn API compared to the one conda is trying to install. Please, first install the exact sklearn version required using: pip install scikit-learn==0.22 or conda install scikit-learn==0.22

Side note: The name of the package is scikit-learn, but it is imported as sklearn. That sometimes leads to confusions.

HeyLifeHD commented 3 years ago

Fixing the scikit-learn version has also worked for me!

pip uninstall scikit-learn
pip install scikit-learn==0.22