我试图在python 2上运行一些代码,但我不断收到此错误No module named model_selection。我检查了一下,出于某种原因,我的python2上的sklearn是版本0.17,但是当我尝试更新时,它说我已经有一个更新的版本,但这是针对python 3的。我如何专门为python 2更新sklearn?运行时出现错误pip install -U scikit-learn:Requirement already up-to-date: scikit-learn in /home/ruven/anaconda3/lib/python3.6/site-packages (0.19.2)运行时出现错误python2.7 -m pip install -U scikit-learn:Collecting scikit-learn Using cached https://files.pythonhosted.org/packages/bc/67/370aa248f54769a56216707ad7b9af19745e85a603fafa47bde353f327fb/scikit_learn-0.19.2-cp27-cp27mu-manylinux1_x86_64.whlInstalling collected packages: scikit-learn Found existing installation: scikit-learn 0.17Cannot uninstall 'scikit-learn'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
添加回答
举报
0/150
提交
取消