1. Install Pip
mkdir ~/vi ~/.pip/pip.conf[global]trusted-host=mirrors.aliyun.comindex -url=http://https://bootstrap.pypa.io/get-pip.pysudo python get---9.0. 1 from/usr/local/lib/python2. 7 2.7)
2. Install the Machine learning Package
The following installation package is not chaotic due to dependencies
sudo Install sudo install sudo install sudo install scipy
Error:
Statsmodels/tsa/kalmanf/kalman_loglike.c:8:22:fatal error:pyconfig.h:no such file or directorycompilation Terminated.error:command ' X86_64-LINUX-GNU-GCC ' failed with exit status 1
To perform a command installation g++
$ sudo apt-get install g++$ sudo apt-get install Python-dev
Because of the Chinese network installation Python-dev too slow, so I update to Ubuntu into a domestic source. Replace the contents of the/etc/apt/source.list (back up) file directly with the command line, but at sudo apt-get update, the error is reported, and a different method is selected at the end.
[Email protected]:~/.pip$ lsb_release-16.04. 1 16.04codename:xenial
Select the system settings midpoint software&updates directly in the graphical interface
Installation Python-dev Error:
Workaround:
sudo Install sudoinstall Python-dev
The second option is n,y,y.
sudo Install sudoinstall scikit-sudoinstall matplotlib
succeed!
Ubuntu Installation Python machine learning Package