search
HomeBackend DevelopmentPython TutorialCan I learn python on mac system?
Can I learn python on mac system?Jun 19, 2019 am 10:43 AM
mac systempython

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
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
Mac系统如何更改系统默认输入法-更改系统默认输入法的方法Mac系统如何更改系统默认输入法-更改系统默认输入法的方法Mar 18, 2024 pm 03:00 PM

小伙伴们知道Mac系统如何更改系统默认输入法吗?今天小编就来讲解Mac系统更改系统默认输入法的方法,感兴趣的快跟小编一起来看看吧,希望能够帮助到大家。第一步:在Mac系统桌面上,点击系统偏好设置进入。第二步:进入系统偏好设置界面,点击键盘进入。第三步:在键盘界面,点击输入源进入。第四步:进入输入源界面,勾选自动切换到文稿的输入源选项即可。

Mac系统如何设置启动台快捷键-Mac系统设置启动台快捷键的方法Mac系统如何设置启动台快捷键-Mac系统设置启动台快捷键的方法Mar 18, 2024 pm 12:40 PM

小伙伴们知道Mac系统如何设置启动台快捷键吗?今天小编就来讲解Mac系统设置启动台快捷键的方法,感兴趣的快跟小编一起来看看吧,希望能够帮助到大家。第一步:打开Mac系统偏好设置后,点击键盘。第二步:在键盘设置页面,点击快捷键。第三步:选中启动台后,输入启动台快捷键即可。

Mac系统怎么开启检测密码泄露-Mac系统开启检测密码泄露的方法Mac系统怎么开启检测密码泄露-Mac系统开启检测密码泄露的方法Mar 18, 2024 pm 02:50 PM

近日有一些小伙伴咨询小编Mac系统怎么开启检测密码泄露?下面就为大家带来了Mac系统开启检测密码泄露的方法,有需要的小伙伴可以来了解了解哦。第一步:在系统开始菜单,选择【系统偏好设置】。第二步:在系统偏好设置,选择【密码】设置项。第三步:在密码设置页面,开启【检测已泄露的密码】设置即可。

Mac系统滚动条怎么设置始终显示-滚动条设置始终显示的方法Mac系统滚动条怎么设置始终显示-滚动条设置始终显示的方法Mar 18, 2024 pm 06:22 PM

近日有一些小伙伴咨询小编Mac系统滚动条怎么设置始终显示?下面就为大家带来了Mac系统滚动条设置始终显示的方法,有需要的小伙伴可以来了解了解哦。第一步:在系统开始菜单,选择【系统偏好设置】选项。第三步:在系统偏好设置页面,选择【通用】选项。第三步:在通用页面,选择【始终】显示滚动条。

Mac系统如何更改键盘类型-Mac系统更改键盘类型的方法Mac系统如何更改键盘类型-Mac系统更改键盘类型的方法Mar 18, 2024 pm 05:40 PM

近日有一些小伙伴咨询小编Mac系统如何更改键盘类型?下面就为大家带来了Mac系统更改键盘类型的方法,有需要的小伙伴可以来了解了解哦。第一步:点击系统菜单栏上的苹果图标后,点击系统偏好设置。第二步:打开系统偏好设置后,点击键盘。第三步:在键盘设置页面,点击更改键盘类型即可。

Mac系统上安装和配置Maven的完整指南Mac系统上安装和配置Maven的完整指南Jan 28, 2024 am 09:42 AM

详解Mac系统下安装Maven的方法与技巧作为一个开发者,在Mac系统上安装Maven是非常常见的需求,因为Maven是一个非常流行的构建工具,用于管理Java项目的依赖关系和构建过程。本文将详细介绍Mac系统下安装Maven的方法与技巧,并提供具体的代码示例。一、下载Maven首先,需要从官方网站(https://maven.apache.org/down

Mac系统如何使用脚本编辑器-Mac系统使用脚本编辑器的方法Mac系统如何使用脚本编辑器-Mac系统使用脚本编辑器的方法Mar 18, 2024 pm 03:52 PM

小伙伴们知道Mac系统如何使用脚本编辑器吗?今天小编就来讲解Mac系统使用脚本编辑器的方法,感兴趣的快跟小编一起来看看吧,希望能够帮助到大家。第一步:打开前往选项(如图所示)。第二步:选择实用工具选项(如图所示)。第三步:打开脚本编辑器(如图所示)。第四步:此时就可以输入apple脚本了(如图所示)。第五步:单击上面的播放开关按钮就可以执行脚本了(如图所示)。

Mac系统如何不显示音量图标-Mac系统不显示音量图标的方法Mac系统如何不显示音量图标-Mac系统不显示音量图标的方法Mar 18, 2024 pm 11:10 PM

近日有一些小伙伴咨询小编Mac系统如何不显示音量图标?下面就为大家带来了Mac系统不显示音量图标的方法,有需要的小伙伴可以来了解了解哦。第一步:在系统菜单栏中,点击系统偏好设置。第二步:在音量设置页面,取消勾选在菜单栏中显示音量。第三步:在系统菜单栏,将不再显示音量图标。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version