pip更新scikit-learn方法
更新scikit-learn需要一起更新以下几个包(有网情况一条命令自动安装,没网情况手动下载安装):
1.更新pip python -m pip install --upgrade pip
2.安装numpy pip install numpy
3.安装scipy pip install scipy
4.安装matplotlib pip install matplotlib
5.安装scikit-learn pip install scikit-learn
有网的情况:
使用清华源镜像自动安装: pip install scikit-learn -i https://pypi.tuna.tsinghua.edu.cn/simple
没网情况:
去这个网站下载上面的 numpy、scipy、matplotlib、scikit-learn
https://pypi.org/
分别在对应解压好的包的根目录下执行
python setup.py install
查看包版本
pip list
---------是故无冥冥之志者----------
---------无昭昭之明----------
---------无惛惛之事者----------
---------无赫赫之功----------
本文来自博客园,作者:|是吴啊|,转载请注明原文链接:https://www.cnblogs.com/wuguofeng/p/15928388.html

浙公网安备 33010602011771号