Ubuntu Installation Python machine learning Package

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.