使用较旧版本的scikit-learn

时间:2018-11-06 12:40:00

标签: python python-3.x scikit-learn pip

我在计算机中安装了conda 4.5.11,在计算机中安装了Python 3.7.0,并且尝试按照以下过程安装scikit-learn 0.19

pip uninstall scikit-learn
pip install scikit-learn==0.19

但是出现以下错误:

  

无法通过scikit-learn学习车轮

     

命令“ / anaconda3 / bin / python -u -c”导入设置工具,标记化; 文件 ='/ private / var / folders / x5 / t6zy26vd4gq36xgq6yl45p2h0000gn / T / pip-install-7h06grkn / scikit-learn / setup.py'; f = getattr(tokenize,'open',open)( file ); code = f.read()。replace('\ r \ n',' \ n'); f.close(); exec(compile(code, file ,'exec'))“ install --record / private / var / folders / x5 / t6zy26vd4gq36xgq6yl45p2h0000gn / T / pip -record-eem8zdll / install-record.txt-“单一版本-外部管理-编译”失败,错误代码为/ private / var / folders / x5 / t6zy26vd4gq36xgq6yl45p2h0000gn / T / pip-install-7h06grkn / scikit-学习/

以及一系列警告。如何在Anaconda安装的python中使用旧版本的sklearn?

1 个答案:

答案 0 :(得分:-1)

conda install scikit-learn==0.19有效。