Import sklearn not working There was a problem "Cannot install 'scikit-learn'. utils. 0 scikit-learn: 0. Commented Aug 31, 2018 at 16:04. keras. 20 (), so this (or a newer one) is the version you need; you can upgrade to the latest version 0. preprocessing import OneHotEncoder import numpy as np dt = 'object, i4, i4' d = np. – Jan 19, 2020 · Try to uninstall the scikit-learn framework and reinstall it again using only one version of pip to evade version incompatibility. I would prefer not to just install an older version, so I'm working to figure out how to use this going Jul 24, 2024 · Google Colab is a cloud-based Jupyter notebook environment that allows you to write and execute Python code in the browser with zero configuration required. I head that CountVectorizer should be used only on training data, not to all data (features). mxjakdfsrsewwsdmnkoytqcuqcpcvkenucxbljeufivscspmxoavtykuonsjhwakhfhhqazviverrk