Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Install psycopg2 on M1 Mac

brew install libpq --build-from-source
brew install openssl

export LDFLAGS="-L/opt/homebrew/opt/openssl@1.1/lib -L/opt/homebrew/opt/libpq/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl@1.1/include -I/opt/homebrew/opt/libpq/include"

pip3 install psycopg2
Comment

psycopg2-binary install for M1

❯ brew install postgresql
# If you open a new terminal tab you will see that pg_config is available
❯ export CPPFLAGS="-I/opt/homebrew/opt/openssl@1.1/include"
❯ export LDFLAGS="-L/opt/homebrew/opt/openssl@1.1/lib -L${HOME}/.pyenv/versions/3.8.10/lib"
❯ python -V
Python 3.8.10
❯ pip install psycopg2-binary==2.8.6
Comment

PREVIOUS NEXT
Code Example
Shell :: composer uninstall dev require 
Shell :: after installing kali what next 
Shell :: linux scroll in flutter 
Shell :: We no longer support global installation of Create React App. 
Shell :: rm -rf 
Shell :: how to get ips of any website 
Shell :: change permissions on all sub-directories 
Shell :: switch docker os 
Shell :: symfony install website skeleton 
Shell :: bash make directory 
Shell :: bash copy contents of file to clipboard 
Shell :: colorlog python 
Shell :: how to install packages from github in flutter 
Shell :: conda install numba 
Shell :: git ignore still sending files 
Shell :: check python running process linux 
Shell :: ubuntu command to check all network interfaces with IPv4 
Shell :: Connect to Remote MySQL Database through Command Line 
Shell :: gatsby-plugin-react-helmet npm 
Shell :: discord.py install 
Shell :: linux create directory with permissions 
Shell :: linux blackeye 
Shell :: vlc for ubuntu 
Shell :: ubuntu set environment variable permanently 
Shell :: docker container name 
Shell :: pnpm version 
Shell :: powershell create file content 
Shell :: install jwt express 
Shell :: github visualise branches 
Shell :: main vs master in git 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =