One of the Python learning: building a development platform based on sublime text under Mac OS x includes numpy,scipy

Source: Internet
Author: User
Tags sublime text

1 Preface

Python has a lot of Ides to use, and the official itself has one, and eclipse can.

But after I used various Ides, I found that using sublime text was the best one. So. I use sublime text to write a Python program.
Then the whole building is actually easy. Considering that the next thing to do is scientific research, we also install numpy at the same time. Scipy,matplotlib and other plugins.

2 Development environment

Macbook Pro
Mac OS X 10.10

3 Step-by-Step build Step 1 Install Python 2.7

This to the official website to download the installation will be able to www.python.org
After the installation is complete. Entering Python in terminal should show:

bogon:  ~ floodsurge$ Pythonpython 2.7  .9  (V2.7  .9 : 648  dcafa7e5f, dec  10   Page , 10 : 10 :  () [GCC 4.2  .1  (Apple inc . Build 5666 ) (dot 3 )] on darwintype " help ", , " credits "  or   "license"  for more information.> >> 

This allows Python to be installed successfully. Note Python 2.7 and Python 3.4 are not the same.

In many cases, for example, some deep learning frameworks use the 2.7 version number.

Step 2 Installation Sublime Text

This is also to the corresponding official website to download and install www.sublimetext.com
After the installation is complete, you can open such as the following:

Step 3 Install sublime Text python plugin

Shift+command+p Open the package Control for sublime text:

Select Install Packages
Then choose Install Anaconda, this is the Python plugin
Then install Sublimecodeintel, this is the input prompt plugin. Personal feeling is very good.

After that, you will already be able to develop Python on the sublime text.

Create a PY file, enter the primary print, and then command+b execute:

To this step. It's already happy.

After the edit you will find its input prompt and self-active complement function does not lose xcode.

Step 4 Install Numpy,scipy,matplotlib and other plugins

Here I use PIP to install in terminal, the main input code is:

install numpy

Install numpy,scipy in turn. Matplotlib. Pillow, you can even install Theano in this way, a deep learning framework.

Once installed, you will be able to import numpy.

。。。

3 Summary

With the above steps, we have successfully built a Python development environment on Mac OS X, which is convenient to use.

"This article is original article, reprint please indicate source: Blog.csdn.net/songrotek"

One of the Python learning: building a development platform based on sublime text under Mac OS x includes numpy,scipy

Related Article

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.