Mac Install Python Library Command

Mac Install Python Library Command 4,0/5 7547 votes

Installing Python. To install Python, follow these steps: Navigate to the Python downloads page: Python downloads. Click on the link/button to download Python 2.7.x. Follow the installation instructions (leave all defaults as-is). Open your terminal again and type the command cd. Next, type the command python. The Python interpreter should. To activate the environment, use the below command − activate PythonCPU Install spyder. Spyder is an IDE for executing python applications. Let us install this IDE in our conda environment using the below command − conda install spyder Install python libraries. We have already known the python libraries numpy, pandas, etc., needed for keras. Apr 18, 2018 This guide provides the steps needed to install Pygame for Python 3.6 on Windows and macOS. Procedure (Windows 10) Make sure to have the latest version of Python 3 installed on your computer. If you need to install Python 3, you can visit to install the latest Python 3 release. Your best way to get started with Python on Mac OS X is through the IDLE integrated development environment, see section The IDE and use the Help menu when the IDE is running. If you want to run Python scripts from the Terminal window command line or from the Finder you first need an editor to create your script.

RF Explorer Python library can be easily installed with PIP.

QuickTip: How Do I Install pip on macOS or OS X? Even if you are not into Python there comes a time when you end up with the need of having to install pip on your macOS or OSX based computer. Searching online would lead you to long tutorials which are not really what you need. All you have to do is run the following command.

Linux / Mac / Unix

Open a terminal

Use either pip or pip3 if you are using a different pip install for each Python version.

Windows

Open a Command Prompt as Administrator

Prerequisites

  • RFExplorer libraries use pySerial, please make sure you have it installed before trying to install RFExplorer
  • Python 3.5 or later is required, please make sure to have and run the right version of Python. If you use an older version of Python, you can still install Python 3.5 and use multiple Python environments in the same computer.

To download examples, please visit GITHUB repository and download files in any local folder of your choice.

  • Examples USB : These are examples compatible with any RF Explorer Handheld device, including Spectrum Analyzer and Signal Generator, and RF Explorer RackPro.
  • Examples IoT : These are examples only suitable for RF Explorer 3G+ IoT platform, currently supported on Raspberry Pi only. More details at IoT page.
Clone this wiki locally

Being a software engineer, you often come across many instances where you would require to have Python installed on your Mac.

Using external hard drives to store photos library on mac. However, the issue is most modern macOS versions come with rather with Python 2.7.x installed and not the newer, modern version like Python 3.6.5 or Python 3.7.2 (which is the most up-to-date version right now).

This short guide is written to show you how to properly install Python 3 on a Mac OS Xcomputer.

Before you jump into the guide, do take note that there are multiple ways to install Python 3 on a Mac but with this guide, I’ll show you the two easiest ways to do this, step-by-step.

Personally, the way I did it was using a package manager like HomeBrew (it’s okay if you don’t understand what it is). Again, I’ll show you how to do this method down below.

Wait, how do I check if Python 3 is already installed on my Mac?

Simple. Open up your Terminal and type the following line python --version and then hit your Enter key:

You should see the python version that is currently installed on your Mac.

How to Install Python 3 on macOS: 2 Ways

1. The Simplest Way.

Perhaps the simplest way to install Python 3 on macOS.

This is for you especially if you’re a newbie (though I still strongly recommend you try the HomeBrew method below) or if you don’t want to deal with copy-pasting code into your Terminal and downloading other software.

Here’s how to install Python 3 on your macOS:

  1. Jump into Python.org downloads page and simply just download the latest Python version.
  1. Next, run the Python Installer to install Python 3 onto your Mac.

Note

Mac Install Python Library Command

The Python installation may require about 100MB of disk space to install. Once you’ve installed Python 3 you can have it alongside Python 2 without having to delete the latter from your Mac.

  1. Great! Now once Python 3 is installed, you’ll be able to find it within the Applications directory of your Mac. You’ll also find here a simple IDE called “IDLE.app” which gives you a basic Python IDE.
Help! Where do I find the Applications directory?

If you can’t find the Applications directory, simply go to Finder by clicking the Finder icon in the Dock (it’s usually the first icon from the left side of the Dock). From there simply, go to the Go menu and select Applications.

Done. If you got yourself lost through the process, you can comment down below.

Mac Install Python Library Commands

Next up, I’ll show you how you can install Python 3 using HomeBrew onto your macOS. This is my preferred way and it is just as simple as the method before but it will make your life a whole lot simpler, in the long run, using Python.

2. Install Python 3 on Mac using HomeBrew.

This method is dead-ass simple and a little fun. 🙂

First of all, you’ll need to have this thing called HomeBrew installed on your Mac. Homebrew is basically a “package manager”. A package manager is an application that helps you install the stuff you need that Apple (or even your Linux System) hadn’t installed in the first place for you.

It’s simple, fast and safe.

Second, you will need to have installed XCode onto your Mac. If you’re thinking of learning how to program or creating iOS apps on your Mac, then it’s good to have XCode installed. We will be using XCode to install HomeBrew application.

Note

Mac Install Python Library Command Mac

If you have already installed XCode onto your Mac you can skip step 1 and jump straight to step 3.

Here are the steps to install XCode, HomeBrew as well as install Python 3 using HomeBrew onto your Mac:

  1. Jump into your Terminal app on your Mac and run the copy/paste the following command into the Terminal to install XCode onto your Mac:
  2. Simply click through all the confirmation crap that XCode shows. It may take a little while to install XCode since it is a large program.
  3. Great! Now that you have XCode installed, you can install HomeBrew! To install HomeBrew, simply copy/paste the following command into your Terminal:

Note

You can confirm the HomeBrew installed correctly by running the command: below:

Folder

  1. You’ve installed HomeBrew! Now let’s install the Python 3, the reason why you’re here. To install the latest version of Python, just copy/paste the following command into your Terminal:

Note

You can confirm which version of Python was installed all by running the command below (the exact same command you tried earlier in this guide). It should show up as follows:

  1. Finally, let’s run our new Python 3. Simply enter python3.

Voila! You have now installed Python 3 successfully if you see something similar in your Terminal:

Bonus

If you want to exit, type exit() and then hit your Return button on your keyboard. You can also hit both Control and D keys at the same time instead of the Return key.

Remember I mentioned you can run both your new Python 3 alongside your old Python 2? Yup. Simply type python into the Terminal to run with Python 2.

Share this guide with someone who’s looking to install Python 3 on macOS.