How to install and use Python, Pycharm (Mac Version)

Source: Internet
Author: User

Last week when I was having coffee with a friend, I wanted to learn python, and she happened to have this plan, and by the way, recommended a book, "Programming Little white, the 1th python primer," I pushed to the Kindle, and looked at it, plain, concise and easy to understand.

Before choosing between R and Python, I looked at some other people's comments on the two languages, asked what language the company was using, and decided which language had the choice of the textbook I liked, which would be a lot more positive and fulfilling in the initial study.

Here for the specific introduction of Python do not repeat, its use of objects mainly include: Data analysts, Web site back-end programmers, game developers, automated testing, automated operations and so on. crawlers can crawl and process information, develop Web sites, and package other languages.

I use a Mac, so I will talk about the Mac version of the method.

Installation and use of Python:

1. Go to the Python website, click on the link to the right of latest, find the files at the bottom, download the appropriate installation file, I am Python3.6.0.

2. After downloading, double click to open, continue to point, complete the installation.

3. Open the Mac terminal, type "Python3", enter to see if it is a Python version of your own (if the Mac system version is 10.8-10.11, the default comes with Python2.7). After entering Python3, I see the display of ">>>", indicating that it is already in the interactive environment of Python and can be used normally.

Attached: how do I see if my Mac is 32-bit or 64-bit?

Click on the "Apple icon in the top left--about this Mac-system report-preferences panel" to see whether it is 32-bit or 64-bit.

Installation and use of Pycharm:

After installing the Python environment, you also need to configure a programming tool, and the author recommends Pycharm.

Pycharm official dot hit "DOWNLOAD now", have seen sub-Professional Edition (Professional) and Community Edition (Community), Community Edition is free, generally use the community version of it.

I'm using a cracked version of professional 2016.2, address: http://www.sdifenzhou.com/phpstorm201623.html.

The installation method can refer to his blog, the description is very clear. I personally like his blog, simple and generous, many Mac cracked version of the software installation is very convenient.

After installing the Pycharm, briefly introduce the following methods:

1. Open the installed Pycharm, create a new project, the first line of the path can be modified after the name, the second row can tick the Python version you want to use, and then create.

2. Right-click after new (I set my Mac to work like Windows), and create a new Python file to compile.

3. The default color font, etc., can be modified in "pycharm--preferences--editor--colors&fonts" if it is not appropriate. The default editing area is white and can be changed in "General" if you want to change to a different color.

The default font size is small, if you need a larger one, in the "Font" interface can not be modified, you need to save as a theme of their own font, and then change the sizes.

After you set your preferences, you can try to write and run.

When you're done, click "Run" at the top to run it, and you'll be prompted to run it and choose what you want to run.

After the first run, the run symbol in the upper-right corner becomes clickable and can be run directly with the shortcut key Control+r or by clicking the Run button.

This is a completely for the small white tutorial, the Windows version of the Python installation of a slightly different, the other is similar, we can self-Baidu.

My follow-up will learn something to share, at present, learning Python is only one of my entertainment, compiled code, right or wrong run can immediately see the effect, if the right, the mood will be very good.

If you are interested, you can try it.

--------------------------------------------------End--------------------------------------------------

Du Wangdan, public number: Du Wangdan, Internet Product Manager.

How to install and use Python, Pycharm (Mac Version)

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.