I ran into this ERROR when running "pip3 install psycopg2" on Mac.
I would like to install psycopg2 for the first time.
...
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for psycopg2
Running setup.py clean for psycopg2
Failed to build psycopg2
Installing collected packages: psycopg2
Running setup.py install for psycopg2 ... error
ERROR: Command errored out with exit status 1:
...
I tried pip, installing from GitHub. However, both failed.
Can someone help me, please? I really appreciate!
Just upgrade psycopg2 version to 2.7.6 and it will work fine with python3:
pip3 install psycopg2==2.7.6
I have finally got things working from browsing the above links shared by these awesome people who commented on my post.
brew upgrade postgresql
sudo pip install psycopg2
Thank you all for helping!
Installing: Open terminal (editor or local)
$ brew install postgresql
$ brew services start postgresql
And go to sql promp for create a db (don't leave terminal):
$ psql postgres
CREATE DATABASE ..
CREATE USER
GRANT ...
Related
I'm trying to install pyspider on Debian GNU/Linux 9. Tried installing with pip and pip3, checked libevent-dev, libpython-dev, python-dev, distribute, ez_setup, and I still get the following message from pip/pip3 install pyspider:
Command "python setup.py egg_info" failed with error code 1 in tmp/pip-build-<randomcharacters>/pycurl/
Right above that error message, it says this:
__main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory: 'curl-config'
Any ideas?
pyspider requires pycurl which in turn requires libcurl. So install libcurl first:
apt install libcurl4 libcurl4-openssl-dev
I want to launch a web app on Azure app sevice connected to my azure repo, but I have this problem
ERROR: Command errored out with exit status 1: /tmp/8da0e58792c9438/antenv/bin/python /tmp/8da0e58792c9438/antenv/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp34ji_cp4 Check the logs for full command output.
WARNING: You are using pip version 20.1.1; however, version 22.0.4 is available.
You should consider upgrading via the '/tmp/8da0e58792c9438/antenv/bin/python -m pip install --upgrade pip' command.
"2022-03-25 07:00:00"|ERROR|Failed pip installation with exit code: 1
ERROR: Command errored out with exit status 1:\n command: /tmp/8da0e58792c9438/antenv/bin/python /tmp/8da0e58792c9438/antenv/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp34ji_cp4\n cwd: /tmp/pip-install-t7g41qou/pywinpty\n
Complete output (6 lines):\n \n Cargo, the Rust package manager, is not installed or is not on PATH.\n This package requires Rust and Cargo to compile extensions. Install it through\n the system's package manager or via https://rustup.rs/\n \n Checking for Rust toolchain....
\n ----------------------------------------\n
ERROR: Command errored out with exit status 1: /tmp/8da0e58792c9438/antenv/bin/python /tmp/8da0e58792c9438/antenv/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp34ji_cp4 Check the logs for full command output.\nWARNING: You are using pip version 20.1.1; however, version 22.0.4 is available.\nYou should consider upgrading via the '/tmp/8da0e58792c9438/antenv/bin/python -m pip install --upgrade pip' command.\n/opt/Kudu/Scripts/starter.sh oryx build /home/site/repository -o /home/site/wwwroot --platform python --platform-version 3.7 -i /tmp/8da0e58792c9438 --compress-destination-dir -p virtualenv_name=antenv --log-file /tmp/build-debug.log
can anyone help me with this ?
I tried to add pip version in my requierments.txt but it doesn't help at all
I have removed the specific packages for windows and the compilation works.
As my current app service plan is on linux, the windows packages pyw32 could not work. so just by removing it from de requierement file the compliation works and my app is launched.
I tried installing with pipenv install pymssql and it failed
Then tried with pip install pymssql but import pymssql not working in Mac OS (Big Sur 11.5.2)
Also tried pip3 install pymssql==2.1.5 it gave error as
error: command '/usr/bin/clang' failed with exit code 1
----------------------------------------
ERROR: Failed building wheel for pymssql
Failed to build pymssql
ERROR: Could not build wheels for pymssql which use PEP 517 and cannot be installed directly
I resolved the issue by following below steps
brew install freetds
brew install unixodbc
brew tap microsoft/mssql-release https://github.com/Microsoft/homebrew-mssql-release
brew update
brew install msodbcsql mssql-tools
I wish some one can help me. When I try to install any pkg with pip, I get the following error:
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I tried many solutions like upgrade the setuptools but it's not working.
Please help and thanks in advance.
Update setup tools pip install -U setuptools Or pip3 if you're using Python3
I am trying to install MySQL-python on my ubuntu server. Have Python 2.7 installed. I tried: sudo pip install MySQL-python and I am getting the error:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-Eu0iVS/MySQL-python.
Has anyone come across this and knows how to go about fixing it? thanks