Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Tutorials for installing python3.7 on Mac OS X systems

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains the "Mac OS X system installation python3.7 tutorial", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and study the "Mac OS X system installation python3.7 tutorial" bar!

[installation environment]

Operating system: Mac OS X

Python version: python 3.7.x

[notes]

The mac system itself is installed with python2.x by default. Version x varies according to different versions of the system. You can view the python version that comes with the system through python-V or python-version.

It is recommended not to uninstall!

[installation steps]

You can install it in two ways:

1) use homebrew directly to install

Brew install python3

2) download the macOS 64-bit installer installation package on the official website

Both ways are very simple!

[notes]

After the installation is complete, we can try to enter: python-V finds that the output is still the python version number of the system: Python 2.7.10.

If you don't set it up, you need to use: python3 [- various commands], that is, the future command line test code should start with python3.

Solution: configure ~ / .bash_profile file

The first step is to open (command line language, linux, see how to open vi in Ref. 2) vi ~ / .bash_profile the second step is to add a line, and the path uses its own directory alias python=/usr/local/bin/python3.7 part III effective file source. Bash _ profile thank you for reading, the above is the content of "Mac OS X system installation python3.7 tutorial", after the study of this article I believe that you have a deeper understanding of the problem of installing python3.7 tutorials on the Mac OS X system, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report