psycopg2 is moved to psycopg-binary
See original GitHub issuepip install -r local.txt
Downloading psycopg2-2.7.4.tar.gz (425kB)
100% |████████████████████████████████| 430kB 1.0MB/s
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/psycopg2.egg-info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
Error: pg_config executable not found.
pg_config is required to build psycopg2 from source. Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.
For further information please check the 'doc/src/install.rst' file (also at
<http://initd.org/psycopg/docs/install.html>).
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/h5/lj3c5_050j3_yjd77zqxcn7r0000gp/T/pip-build-vah0b9cd/psycopg2/
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (2 by maintainers)
Top Results From Across the Web
psycopg2 is moved to psycopg-binary · Issue #1530 - GitHub
Are you using the latest cookiecutter-django? It should be fixed in #1503. All reactions.
Read more >PostgreSQL Python Libraries: psycopg2 and psycopg2-binary
psycopg2 -binary and psycopg2 both give us the same code that we interact with. The difference between the two is in how that...
Read more >Release notes — Psycopg 2.9.5 documentation
The psycopg2.tz module is deprecated and scheduled to be dropped in the next major ... Build system for Linux/MacOS binary packages moved to...
Read more >Can't install psycopg2-binary on macOS Monterey 12.3
I've been trying to install psycopg2-binary for my django project, and so far nothing has been working. It keeps asking for the pg_config ......
Read more >[Fixed] ModuleNotFoundError: No module named 'psycopg2 ...
The most frequent source of this error is that you haven't installed psycopg2-binary explicitly with pip install psycopg2-binary . Alternatively, you may have ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Never mind this issue is very easy to fixed. I just follow the the official docs by drop
--no-binary psycopg2
and I am good to go.Thank you @luzfcb @sfdye
official docs: http://initd.org/psycopg/docs/install.html
I just got this error as well. Using Docker. Pycharm. Windows 10 Dropping
--no-binary psycopg2
didn’t helpI noticed my PGS was not in the PATH, so that fixed that error. Got another error about link.exe they I gave up. 😦