Python的库sklearn安装
也可以用pip安装(如:pip installscikit-learn),但安装的位置不同,安装是包名不同(apt-get安装的python包一般前缀是python),python用的时候优先选择apt-get安装的包。如果用pip freeze 安装的包的版本和在python环境(进入python导包,查看版本)看到的版本不同,可能就是用apt-get和pip都安装了,然后选择性的保留就行了(建议保留pip的)
安装scipy 0.16.1:
1、scipy需要依赖numpy包,先安装numpy
2、用pip install scipy==0.16.1安装scipy,安装时报错:building 'dfftpack' library error:library dfftpacy hasFortran sources but no Fortran compiler found。这是没有安装gfortran编译器(没有gfortran编译器),安装gfortran命令如下:sudo apt-getinstall gfortran。
3、重新安装scipy,安装时又报了 numpy.distutils.system_info.NotFoundError:no lapack/blas resources found
4、用