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. Therefore, I use sublime text to write a Python program.
Then the whole building is actually very simple. Considering the next thing to do is scientific research, we also install Numpy,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 download installs can www.python.org
After installation, entering Python in terminal should be displayed:
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 will make the Python installation successful. Note Python 2.7 and Python 3.4 are not the same. In many cases, for example, some deep learning frameworks use version 2.7.
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 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 very good.
After that, you can already develop Python on the sublime text.
Create a PY file, enter basic print, and then command+b run:
By this step, it has been very happy. After the edit you will find its input prompt and auto complement function does not lose xcode.
Step 4 Install Numpy,scipy,matplotlib and other plugins
Here I use PIP to install in terminal, the basic input code is:
install numpy
By installing Numpy,scipy,matplotlib,pillow in turn, you can even install Theano in this way, a deep learning framework.
After installation, you can import NumPy ....
3 Summary
With the above steps, we have successfully built a Python development environment on Mac OS X, which is very convenient to use.
"This article is original article, reprint please indicate source: Blog.csdn.net/songrotek"
Python Learning: Building a development platform based on sublime text under Mac OS x contains numpy,scipy