Introduction Python is a versatile programming language that can be used for many different programming projects. First published in 1991 with a name inspired by the British comedy group Monty Python, the development team wanted to make Python a language that was fun to use. Easy to set up, and written in a relatively straightforward style with immediate feedback on errors, Python is a great choice for beginners and experienced developers alike. Python 3 is the most current version of the language and is considered to be the future of Python. This tutorial will guide you through installing Python 3 on your local macOS machine and setting up a programming environment via the command line. Prerequisites You will need a macOS computer with administrative access that is connected to the internet. Step 1 — Opening Terminal We’ll be completing most of our installation and set up on the command line, which is a non-graphical way to interact with your computer. Hum saath saath hain full movie dailymotion. If I download python from the Python website and try to install it with the installer, it installs, but I need to specify that I want the new version of Python when I run my programs from terminal. That is, instead of clicking on buttons, you’ll be typing in text and receiving feedback from your computer through text as well. The command line, also known as a shell, can help you modify and automate many of the tasks you do on a computer every day, and is an essential tool for software developers. The macOS Terminal is an application you can use to access the command line interface. Like any other application, you can find it by going into Finder, navigating to the Applications folder, and then into the Utilities folder. From here, double-click the Terminal like any other application to open it up. Alternatively, you can use Spotlight by holding down the command and spacebar keys to find Terminal by typing it out in the box that appears. There are many more Terminal commands to learn that can enable you to do more powerful things. ![]() The article “” can get you better oriented with the Linux Terminal, which is similar to the macOS Terminal. Step 2 — Installing Xcode Xcode is an integrated development environment (IDE) that is comprised of software development tools for macOS. You may have Xcode installed already. To check, in your Terminal window, type: • xcode-select -p If you receive the following output, then Xcode is installed. Output/Library/Developer/CommandLineTools If you received an error, then in your web browser install and accept the default options. Once Xcode is installed, return to your Terminal window. Next, you’ll need to install Xcode’s separate Command Line Tools app, which you can do by typing: • xcode-select --install At this point, Xcode and its Command Line Tools app are fully installed, and we are ready to install the package manager Homebrew. Step 3 — Installing and Setting Up Homebrew While the OS X Terminal has a lot of the functionality of Linux Terminals and other Unix systems, it does not ship with a good package manager. A package manager is a collection of software tools that work to automate installation processes that include initial software installation, upgrading and configuring of software, and removing software as needed.
0 Comments
Leave a Reply. |