Psycopg on macOS

A pair of glasses, with a large monitor in the background displaying computer code | Data Science Consulting
A pair of glasses, with a large monitor in the background displaying computer code | Data Science Consulting
Source: Pexels

Prelude

There are several ways to install PostgreSQL on macOS, here we are installing it through Homebrew.

Installing Homebrew might take some minutes. Other installation options are available here

1.- Install PostgreSQL on macOS

Once we install Homebrew, proceed with Postgre. Open your macOS terminal and type:

brew install postgresql

2.- Create a Python Environment

To keep our installation clean, let’s create a python environment under Anaconda (you can install python through Anaconda here). To create a Python environment type, the following command in your terminal:

conda create -n postgre_env python=3.6

With the command above, we just created an environment called “postgre_env” that runs python version 3.6. …


Psycopg on macOS

A pair of glasses, with a large monitor in the background displaying computer code | Data Science Consulting
A pair of glasses, with a large monitor in the background displaying computer code | Data Science Consulting
Source: Pexels

Prelude

There are several ways to install PostgreSQL on macOS, here we are installing it through Homebrew.

Installing Homebrew might take some minutes. Other installation options are available here

1.- Install PostgreSQL on macOS

Once we install Homebrew, proceed with Postgre. Open your macOS terminal and type:

brew install postgresql

2.- Create a Python Environment

To keep our installation clean, let’s create a python environment under Anaconda (you can install python through Anaconda here). To create a Python environment type, the following command in your terminal:

conda create -n postgre_env python=3.6

With the command above, we just created an environment called “postgre_env” that runs python version 3.6. …

About

Fabricio Flores

Data Scientist @DAIBuilds | WWW → https://fabricioflores.com/ | Consulting → https://www.daibuilds.com/data-science-consulting/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store