Home Backend Development Python Tutorial Can I learn python on mac system?

Can I learn python on mac system?

Jun 19, 2019 am 10:43 AM
mac system python

Can I learn python on mac system?

You can learn python on mac system. Here I will introduce how to install python on mac:

1. mac comes with python

All you have to do is:

1. Open the terminal...there are too many ways (shortcut key shift command U to open "Utility" Tools" to find the terminal or open launchpad first, enter "terminal" in the search or press command space to enter the search interface to search for the terminal)

Can I learn python on mac system?

2. Enter "python" and press Enter Then enter the interpreter, for example, print "hello world!".

Can I learn python on mac system?

3. Question: The default startup path of the python environment that comes with the Mac system is: /usr/bin. You can easily execute python scripts here, but it is definitely not enough for python development. You also need to install Anaconda.

So what is Anaconda? Why do I need to install Anaconda when I can run python?

Related recommendations: "python Video Tutorial"

2. Install Anaconda

1. What is Anaconda?

Simply put, Anaconda is a package manager and environment manager. It comes with multiple scientific data modules such as conda and python to support scientific computing and data analysis; in addition, when encountering different projects, you need to use different When using different versions of python or different versions of packages, conda can create different running environments for different projects, so it is also called an environment manager; Anaconda also includes two different styles of editors, Jupyter and Spyder.

2. How to install Anaconda on Mac?

(1) Go directly to the official website to download the corresponding version of Anaconda under OS X. Here, select the installation package corresponding to Python2.7.

(2) Open the terminal, enter the following command, and execute the batch command:

$ bash~ /Downloads/Anaconda2-4.0.0-MacOSX-x86_64.sh

The next step is to install it for fools, enter, yes...

(3) After the installation is successful, execute the following command to load the location of Anaconda to the beginning of the environment variable PATH, so that it will be used first when using python in the future. Anaconda version.

$ export PATH="$HOME/anaconda2/bin:$PATH"

(4) Finally, you can directly enter python to check whether the Anaconda version of python is installed successfully.

3. Install PyCharm

1. PyCharm is a multi-functional integrated development environment. You only need to create a python file in pycharm to run python, and pycharm has complete built-in It has functions such as automatic completion, code prompts, debugging and running, code editing, correction, and optimization, and it can also automatically combine with Git for code version control. When you need to do a large-scale project, it is most convenient to use PyCharm with project management functions.

2. The installation of PyCharm is also very simple

Go directly to the official website PyCharm: Python IDE for Professional Developers by JetBrains, click download

Can I learn python on mac system?

Select the macOS version

Can I learn python on mac system?

Drag PyCharm into the application

Can I learn python on mac system?

Start PyCharm, and there will be an activation code Question, I saw a very magical operation on the Internet:

Select License Server to activate, then fill in: http://artemis.my.to, and then click Active to activate.

Can I learn python on mac system?

The above is the detailed content of Can I learn python on mac system?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to download deepseek Xiaomi How to download deepseek Xiaomi Feb 19, 2025 pm 05:27 PM

How to download deepseek Xiaomi

What are the advantages and disadvantages of templating? What are the advantages and disadvantages of templating? May 08, 2024 pm 03:51 PM

What are the advantages and disadvantages of templating?

Google AI announces Gemini 1.5 Pro and Gemma 2 for developers Google AI announces Gemini 1.5 Pro and Gemma 2 for developers Jul 01, 2024 am 07:22 AM

Google AI announces Gemini 1.5 Pro and Gemma 2 for developers

For only $250, Hugging Face's technical director teaches you how to fine-tune Llama 3 step by step For only $250, Hugging Face's technical director teaches you how to fine-tune Llama 3 step by step May 06, 2024 pm 03:52 PM

For only $250, Hugging Face's technical director teaches you how to fine-tune Llama 3 step by step

Share several .NET open source AI and LLM related project frameworks Share several .NET open source AI and LLM related project frameworks May 06, 2024 pm 04:43 PM

Share several .NET open source AI and LLM related project frameworks

A complete guide to golang function debugging and analysis A complete guide to golang function debugging and analysis May 06, 2024 pm 02:00 PM

A complete guide to golang function debugging and analysis

How do you ask him deepseek How do you ask him deepseek Feb 19, 2025 pm 04:42 PM

How do you ask him deepseek

How to save the evaluate function How to save the evaluate function May 07, 2024 am 01:09 AM

How to save the evaluate function

See all articles