Build a deep learning/machine learning development environment under Linux Ubuntu

Source: Internet
Author: User
Tags jupyter notebook keras

First, install the Anaconda

1. Download

For: https://www.anaconda.com/download/#linux

2. Install the anaconda and execute the command:

Bash ~/downloads/anaconda3-5.1.0-linux-x86_64.sh

3. The configuration path is displayed during the installation process

prefix=/home/jsy/anaconda2/

4. After installation, running Python is still the python information of Ubuntu, you need to set the environment variable

5. In the terminal input $sudo gedit/etc/profile, open the profile file

6. Add a line at the end of the file: Export path=/home/jsy/anaconda2/bin: $PATH, where "/home/jsy/anaconda2/bin" is replaced with your actual installation path, save.

7. Restart Linux

8. Open the terminal and enter Python, if the following interface appears, indicating that the setting is successful.

You can also use Conda info to query installation information

Enter Conda list to find out which libraries you have installed now, common Python, NumPy, scipy.

If you still have any packages that are not installed, you can run Conda install (* * * for the package name), and if a package version is not up-to-date, run Conda update * *.

Second, installation Scikit-learn

Execute command:

Conda Install Scikit-learn

Second, installation Kras

Execute command:

Conda Install Keras

The required tensorflow is automatically installation during installation of the Keras process.

At this point, deep learning, machine learning development environment has been installed, you can command

Spyder

Or

Jupyter Notebook

Open your favorite IDE for development, enter the following code, if there is no error, it proves that the environment was installed successfully.

Import Kerasimport Sklearn

  

Build a deep learning/machine learning development environment under Linux Ubuntu

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.