Ubuntu under Configuration Anaconda

Source: Internet
Author: User

Turn from: 57075388

Installing Anaconda

Ubuntu under the library does not seem to bring Anaconda, is the self-contained pure python, and 2.x and 3.x are self-contained, but the package is more trouble, than one step installed anaconda. Anaconda's official installation site is in https://www.continuum.io/downloads/. Before you install, confirm that you want to install python2.x or python3.x, and then click Install.
Due to Anaconda's official website download sometimes encounter problems, may not come down. Another way to download the Anaconda installation package is to go to Tsinghua's open source software mirroring station https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/, which can support windows, Anaconda version of Linux and Mac. Download speed can be guaranteed, generally under the down. When downloading, pay attention to the number of system bits, x86 is 32 bits, x86_64 is 64 bits.
After downloading, go to the folder of the Anaconda file, at this time you can see only a anaconda file ending with the sh suffix. Click the right mouse button in the folder to select Open Terminal, type in terminal (if my installation file is named anaconda3-4.3.0-linux-x86_64.sh)

1 bash anaconda3-4.3. 0-linux-x86_64. SH

Add sudo if you are prompted with a permission issue

1 sudo bash anaconda3-4.3. 0-linux-x86_64. SH
Using Anaconda

1.Anaconda comes with Ipython notebook IDE after installation. This IDE supports code auto-completion and can be compiled on a row-by-line basis (that is, one can compile with a single line of code ctrl+回车 ), or it can compile the whole program and help with what the program does wrong. And in the content can be written in markdown, and even in the inside to write tutorials or something, you can try. Running the IDE is very simple, first open the terminal, the terminal can be the right mouse button to open the terminal, you can open ctrl+alt+t , type the following instructions, you can open the IDE.

1 Ipython Notebook

2. If I have a py file, I can specify the anaconda to compile it directly at the terminal. For example I have a file for/home/lab0/document/test.py that I can type in the terminal

1 ubuntu_lab0:~$ ipython/home/lab0/document/test.py

or open the terminal on the folder where the file is located, you can type

1 ubuntu_lab0:~/document $ Ipython test.py

The fact is that the two are equivalent.

Ubuntu under Configuration Anaconda

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.