Ubuntu16.04 installation configuration Numpy,scipy,matplotlibm,pandas and sklearn+ deep learning tensorflow configuration (non-Anaconda environment)

Source: Internet
Author: User
Tags install pandas install matplotlib

1.ubuntu Mirroring Source Preparation (prevents slow download):

Reference post: http://www.cnblogs.com/top5/archive/2009/10/07/1578815.html

The steps are as follows:

First, back up the original Ubuntu 12.10 Source Address List file

sudo cp/etc/apt/sources.list/etc/apt/sources.list.old

Then make changes to sudo gedit/etc/apt/sources.list

You can add a resource address to the inside, overwriting the original directly.

2. Install with Apt-get

It is recommended to update the software source before installing

sudo apt-get update

If Python 2.7 is not a problem, you can proceed to the next step.
The packages for numeric calculations and drawings are now installed and Sklearn are numpy scipy matplotlib Pandas and Sklearn, respectively
The Apt-get command is as follows

sudo apt-get install Python-numpy
sudo apt-get install python-scipy
sudo apt-get install Python-matplotlib
sudo apt-get install Python-pandas
sudo apt-get install Python-sklearn

3. You can also use Pip to install

Install Python-dev before you install PIP
Apt-get Installation Commands

sudo apt-get install Python-dev

If the previous command doesn't work, you can use the following command to resolve
Using the Aptitude tool

sudo apt-get install aptitude
sudo aptitude install Python-dev

Install the Python-dev now to install the PYTHON-PIP.

sudo apt-get install Python-pip

Type PIP in the terminal and, if shown, the installation succeeds

4. Installation Results

The packages used for numeric calculations and drawings are now installed with Pip, respectively, NumPy scipy matplotlib Pandas

sudo pip install NumPy
sudo pip install scipy
sudo pip install matplotlib
sudo pip install pandas

Finally, install the Sklearn with PIP

sudo pip install-u scikit-learn

Test whether all the installation is successful, open the Python interpreter, enter the following command, if there is no error, then success.

Import NumPy as NP
Import Pandas as PD
Import Matplotlib.pyplot as Plt
From Sklearn import Datasets,linear_model

5. Installing TensorFlow

(1) Download

Https://pypi.python.org/packages/1e/b2/75c1ca60a9b4b97500aee98e81dbfe1d541d46a9d5315ea0723d0f45701d/ Tensorflow-1.2.0rc1-cp27-cp27mu-manylinux1_x86_64.whl#md5=ad4b55a56b475a7405b6626f9cd7ad32

(2) PIP installation

CD to the folder where the WHL file directory is located

Pip install tensorflow-1.2. 0RC1-CP27-CP27MU-MANYLINUX1_X86_64.WHL

Successful Installation:

To test whether the installation was successful:

Ubuntu16.04 installation configuration Numpy,scipy,matplotlibm,pandas and sklearn+ deep learning tensorflow configuration (non-Anaconda environment)

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.