move to `psycopg2-binary`?
See original GitHub issueDescription
I tried to install your package from pip and got a usual Error: pg_config executable not found.
because I don’t have libpq
or postgres-devel
packages.
I cloned your repo, replaced psycopg2 >= 2.7.4
with psycopg2-binary
and installed it with
python setup.py install
command.
It works like a charm and not requires postgres stuff now.
How about to move to psycopg2-binary
?
Your environment
- Please provide your OS and version information. OS: Manjaro 18.0.4 Illyria Kernel: x86_64 Linux 5.1.16-1-MANJARO
- Please provide your CLI version. pgcli==2.1.1
- What is the output of
pip freeze
command. Clean virtualenv with pgcli==2.1.1 installed
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
psycopg2-binary - PyPI
Psycopg is the most popular PostgreSQL database adapter for the Python programming language. Its main features are the complete implementation of the Python ......
Read more >PostgreSQL Python Libraries: psycopg2 and psycopg2-binary
When that's created, you'll have a new virtual environment based off the "Base interpreter" that you selected. Now we can go to the...
Read more >How to use psycopg2-binary in Python? - Stack Overflow
I'm using Django on a Mac. This is what worked for me. In my virtual environment I ran: pip install psycopg2-binary.
Read more >How to Install psycopg2 Binary Module in Python
Step 2: Open the command prompt and run the below command to install psycopg2-binary. If it shows successfully installed then you are good...
Read more >Basic module usage — Psycopg 2.9.5 documentation
Python types representing binary objects are converted into PostgreSQL ... in PostgreSQL using the DECLARE command and subsequently handled using MOVE ...
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 Free
Top 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
This one worked for me as a workaround:
Interestingly psycopg2 recommends not using the binary version for production: http://initd.org/psycopg/docs/install.html#binary-install-from-pypi
This makes sense, as annoying as it is.