Installation fails with Command "python setup.py egg_info" failed with error code 1
See original GitHub issueDescription
Could you please explain what do I do wrong? I tried to install pgcli as written at https://www.pgcli.com/
pip install pgcli
also tried with sudo
sudo pip install pgcli
in both cases it failed as
Collecting pgcli
Downloading https://files.pythonhosted.org/packages/5a/2a/9821c4a30d79fafdefeff7b071639b0968e1d54710430f2da16f8124fc37/pgcli-2.1.1.tar.gz (115kB)
100% |ββββββββββββββββββββββββββββββββ| 122kB 1.1MB/s
Requirement already satisfied: Pygments>=2.0 in /home/serg/.local/lib/python2.7/site-packages (from pgcli) (2.4.2)
Collecting cli_helpers[styles]>=1.2.0 (from pgcli)
Downloading https://files.pythonhosted.org/packages/b1/7e/f2658b0e7cb3d4ab75d4dd5c275605ae89e56ba889dc086a0aefe6a89048/cli_helpers-1.2.1-py2-none-any.whl
Requirement already satisfied: click>=4.1 in /home/serg/.local/lib/python2.7/site-packages (from pgcli) (6.7)
Collecting configobj>=5.0.6 (from pgcli)
Downloading https://files.pythonhosted.org/packages/64/61/079eb60459c44929e684fa7d9e2fdca403f67d64dd9dbac27296be2e0fab/configobj-5.0.6.tar.gz
Collecting humanize>=0.5.1 (from pgcli)
Downloading https://files.pythonhosted.org/packages/8c/e0/e512e4ac6d091fc990bbe13f9e0378f34cf6eecd1c6c268c9e598dcf5bb9/humanize-0.5.1.tar.gz
Collecting pgspecial>=1.11.5 (from pgcli)
Downloading https://files.pythonhosted.org/packages/0f/32/0a9808afefbf7a723be123065031089f51d1d6ff3f2595a10d8e7561ed6c/pgspecial-1.11.7.tar.gz (62kB)
100% |ββββββββββββββββββββββββββββββββ| 71kB 986kB/s
Collecting prompt_toolkit<2.1.0,>=2.0.6 (from pgcli)
Downloading https://files.pythonhosted.org/packages/c8/ab/10d2c114828bd20ca0d757acee37ab5a7bae588139739b24d6cd3f45f8de/prompt_toolkit-2.0.9-py2-none-any.whl (337kB)
100% |ββββββββββββββββββββββββββββββββ| 337kB 725kB/s
Collecting psycopg2>=2.7.4 (from pgcli)
Downloading https://files.pythonhosted.org/packages/5c/1c/6997288da181277a0c29bc39a5f9143ff20b8c99f2a7d059cfb55163e165/psycopg2-2.8.3.tar.gz (377kB)
100% |ββββββββββββββββββββββββββββββββ| 378kB 597kB/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 top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
Error: You need to install postgresql-server-dev-NN for building a server-side extension or libpq-dev for building a client-side application.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-aXjlLh/psycopg2/
Your environment
- Please provide your OS and version information. Ubunu 19.04
- Please provide your CLI version. no cli (just try to install it)
- What is the output of
pip freeze
command.
arandr==0.1.9
asn1crypto==0.24.0
backports.functools-lru-cache==1.5
beautifulsoup4==4.7.1
bs4==0.0.1
certifi==2019.6.16
click==6.7
configparser==3.5.0b2
cryptography==2.3
entrypoints==0.3
enum34==1.1.6
fuzzyfinder==2.1.0
httplib2==0.13.0
idna==2.6
ipaddress==1.0.17
keyring==17.1.1
keyrings.alt==3.1.1
kube-shell==0.0.23
kubernetes==2.0.0
lxml==4.3.3
oauth2client==4.1.3
prompt-toolkit==1.0.16
pyasn1==0.4.5
pyasn1-modules==0.2.5
pycairo==1.16.2
pycrypto==2.6.1
Pygments==2.4.2
PyGObject==3.32.0
python-dateutil==2.8.0
pyxdg==0.25
PyYAML==5.1.1
rsa==4.0
SecretStorage==2.3.1
six==1.12.0
snxvpn==1.2
soupsieve==1.9
urllib3==1.25.3
wcwidth==0.1.7
websocket-client==0.56.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to Fix 'Python Setup.py egg_info' Failed with Error Code 1
One major cause of the command "python setup.py egg_info" failing with error code 1 is due to the missing ez_setup module in your...
Read more >"pip install unroll": "python setup.py egg_info" failed with error ...
Error code 1 is defined in errno.h and means Operation not permitted . About your error. Your setuptools do not appear to be...
Read more >Python Setup.py egg_info Failed with Error Code 1? [Fixed]
What causes the python setup.py egg_info failed with error code 1? According to user reports, the error often occurs when your pip or...
Read more >'Command "python setup.py egg_info" failed with error code 1 ...
The error code 1 is defined as Operation not permitted in python standard errno system symbols. This issue is mostly caused when yourΒ ......
Read more >Command "python setup.py egg_info" failed with ... - GitHub
Hi I try to install the package neuralpy in Python2.7 using this command in terminal pip install neuralpy And I got this error...
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
Added those to install instructions:
https://www.pgcli.com/install
@j-bennet may be it makes sense to mention this workaround on the page with installation instructions?