#Error install python on mac os with psycong2 full
Or with the pg_config option in 'setup.cfg'.įor further information please check the 'doc/src/install.rst' file (also atĮRROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.Įxport LDFLAGS="-L/usr/local/opt/openssl/lib"Įxport CPPFLAGS="-I/usr/local/opt/openssl/include" Writing manifest file '/tmp/pip-pip-egg-info-1utvtzmt/psycopg2_binary.egg-info/SOURCES.txt' Writing top-level names to /tmp/pip-pip-egg-info-1utvtzmt/psycopg2_binary.egg-info/top_level.txt Writing dependency_links to /tmp/pip-pip-egg-info-1utvtzmt/psycopg2_binary.egg-info/dependency_links.txt Writing /tmp/pip-pip-egg-info-1utvtzmt/psycopg2_binary.egg-info/PKG-INFO That sets the macOS version to 10.16 instead of 11.0:ĭownloading psycopg2-binary-2.7.7.tar.gz (428 kB) I can get around this using the SYSTEM_VERSION_COMPAT=1 env var. If you prefer to avoid building psycopg2 from source, please install the PyPIįor further information please check the 'doc/src/install.rst ' file (also at Or with the pg_config option in 'setup.cfg '.
Python setup.py build_ext -pg-config /path/to/pg_config build.
Please add the directoryĬontaining pg_config to the $PATH or specify the full executable path with the Pg_config is required to build psycopg2 from source. Writing manifest file '/private/var/folders/73/97rprb4s6qz9qc7n8xy0vt800000gn/T/pip-pip-egg-info-mgvwjdyx/psycopg2_binary.egg-info/SOURCES.txt ' Writing top-level names to /private/var/folders/73/97rprb4s6qz9qc7n8xy0vt800000gn/T/pip-pip-egg-info-mgvwjdyx/psycopg2_binary.egg-info/top_level.txt Writing dependency_links to /private/var/folders/73/97rprb4s6qz9qc7n8xy0vt800000gn/T/pip-pip-egg-info-mgvwjdyx/psycopg2_binary.egg-info/dependency_links.txt Writing /private/var/folders/73/97rprb4s6qz9qc7n8xy0vt800000gn/T/pip-pip-egg-info-mgvwjdyx/psycopg2_binary.egg-info/PKG-INFO Git clone ~/.pyenv/plugins/pyenv-virtualenvĮrror in pyenv installation of Python 3.6.Using cached psycopg2-binary-2.8.6.tar.gz (384 kB)ĮRROR: Command errored out with exit status 1:Ĭommand: /Users/amar/test3/.venv/bin/python -c 'import sys, setuptools, tokenize sys.argv = ' "' " '/private/var/folders/73/97rprb4s6qz9qc7n8xy0vt800000gn/T/pip-install-jo9na1rs/psycopg2-binary/setup.py ' "' " ' _file_= ' "' " '/private/var/folders/73/97rprb4s6qz9qc7n8xy0vt800000gn/T/pip-install-jo9na1rs/psycopg2-binary/setup.py ' "' " ' f=getattr(tokenize, ' "' " 'open ' "' " ', open)(_file_) code=f.read().replace( ' "' " '\r\n ' "' " ', ' "' " '\n ' "' " ') f.close() exec(compile(code, _file_, ' "' " 'exec ' "' " ')) ' egg_info -egg-base /private/var/folders/73/97rprb4s6qz9qc7n8xy0vt800000gn/T/pip-pip-egg-info-mgvwjdyxĬwd: /private/var/folders/73/97rprb4s6qz9qc7n8xy0vt800000gn/T/pip-install-jo9na1rs/psycopg2-binary/Ĭreating /private/var/folders/73/97rprb4s6qz9qc7n8xy0vt800000gn/T/pip-pip-egg-info-mgvwjdyx/psycopg2_binary.egg-info 1.install Pyenv and pyenv virtualenv brew install pyenv