Home  >  Article  >  Backend Development  >  How to install python on mac

How to install python on mac

(*-*)浩
(*-*)浩Original
2019-07-04 10:52:2817188browse

Mac computer comes with a python environment, open the terminal, enter python, press the enter key to check the python version in your computer (the default installation is python2.7 version)

How to install python on mac

[Tip: After checking the python version, enter exit() or quit() to exit the python environment in the terminal] (Recommended learning: Python video tutorial)

How to install python on mac

But when developing, most of us use python3. Enter python3 in the terminal and press the enter key to check whether python3 is installed on the computer

How to install python on mac

If python3 is not installed on your computer, you can download it from the python official website. https://www.python.org/downloads/release/python-363/. After downloading, install python3 and keep clicking Next.

How to install python on mac#After the installation is complete, enter python3 in the terminal to check whether the installation is successful.

After the installation of python3 is completed, we need to use the pip3 install command when downloading some expansion packages of python. If you need to download the ipython expansion package, enter pip3 install ipython in the terminal command line and press enter. Can be installed automatically. [Enter pip3 list to see which expansion packages are installed in the current python environment]

For more Python-related technical articles, please visit the Python Tutorial column to learn!

The above is the detailed content of How to install python on mac. 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