I'm trying to install psycopg2 but
pip install psycopg2 brings to error: command 'gcc' failed with exit status 1
Command line tools are installed
MacOS 10.15
This is likely because you don't have the PostgreSQL devel library installed. You have a few options:
(1) Install the binary with pip install psycopg2-binary
(2) Install PostgreSQL with HomeBrew: brew install postgresql, then pip install psycopg2.
You can probably just install the binary.
after updating the pip package error went away
To Update python3 pip package
wget https://bootstrap.pypa.io/get-pip.py
/usr/bin/python3 get-pip.py
Related
So I was running this command
py -3 -m pip install -U discord.py[voice]
in PyCharm (using latest version) but it couldn't let me install it. It gave me this exception:
ERROR: The 'make' utility is missing from PATH
ERROR: Failed building wheel for PyNaCl Failed to build PyNaCl
ERROR: Could not build wheels for PyNaCl which use PEP 517 and cannot be installed directly
if you are in linux run,
sudo pip3 install discord.py[voice] -U
or if you are on windows run,
pip install discord.py[voice] -U
I am trying to install pyCurl using easy_install, but I get the following error
In file included from src/docstrings.c:4:
src/pycurl.h:170:13: fatal error: 'openssl/crypto.h' file not found
include <openssl/crypto.h>
1 error generated.
error: Setup script exited with error: command '/usr/bin/clang' failed with exit status 1
The openssl has been installed using brew and the version of it is LibreSSL 2.2.7. I have install xcode tools using xcode-select --install and does not seem to have fixed the issue.
I am also getting the same issue while installing using pip.
This might fix your issue.
$export PYCURL_SSL_LIBRARY=openssl
$export LDFLAGS="-L/usr/local/opt/openssl/lib"
$export CPPFLAGS="-I/usr/local/opt/openssl/include"
Now you can easy_install or if you are using pip below should be the command.
$ pip install --no-cache-dir --compile --ignore-installed --install-option="--with-openssl" pycurl
I am trying to install MySQLdb for Python on my mac so I can use it to test. I am running OS X 10.11.4. Everywhere I look says to use
pip install MySQL-python
Every time I do that I get an error saying.
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/4s/4wwhr6zj59sf0c4qkprqbsp80000gn/T/pip-build-042_KK/MySQL-python/
I am running the command just right when I open a new shell, should I change the path?
install mysql connector using homebrew brew install mysql-connector-c then install mysql-python using pip pip install mysql-python or try PyMySQL its a pure python client library, you can install using pip install PyMySQL and upgrade setuptools. pip install --upgrade setuptools.
I'm trying to install Pandar but I can't get pandas to install on my linux Centos 6.4.
Running pip install pandas leads to this error:
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1
What should I do to fix this?
Im pretty sure thats a compiler error, so try installing g++ on the system
if you are working on linux, run this.
sudo apt-get install g++
or if you have a CentOS system, you might want to install gcc, gcc-c++
$ yum install gcc gcc-c++
Then install pandas using pip
$ pip install pandas
I have Python 32 bits, I installed MySQL Community server 32 bits and I'm trying to install MySQLdb for Python.
I run
easy_install mysql-python
and I have this error
> easy_install mysql-python
Searching for mysql-python
Reading http://pypi.python.org/simple/mysql-python/
Reading http://sourceforge.net/projects/mysql-python/
Reading http://sourceforge.net/projects/mysql-python
Best match: MySQL-python 1.2.4b5
Downloading http://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4b5.zip#md5=4f645ed23ea0f8848be77f25ffe94ade
Processing MySQL-python-1.2.4b5.zip
Running MySQL-python-1.2.4b5/setup.py -q bdist_egg --dist-dir /var/folders/ke/ke8HKCuzGB4LMCJ1eIAGqk+++TI/-Tmp-/easy_install-W_yT0e/MySQL-python-1.2.4b5/egg-dist-tmp-GjLaFB
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.28.tar.gz
Extracting in /var/folders/ke/ke8HKCuzGB4LMCJ1eIAGqk+++TI/-Tmp-/easy_install-W_yT0e/MySQL-python-1.2.4b5/temp/tmpOVVY_R
Now working in /var/folders/ke/ke8HKCuzGB4LMCJ1eIAGqk+++TI/-Tmp-/easy_install-W_yT0e/MySQL-python-1.2.4b5/temp/tmpOVVY_R/distribute-0.6.28
Building a Distribute egg in /private/var/folders/ke/ke8HKCuzGB4LMCJ1eIAGqk+++TI/-Tmp-/easy_install-W_yT0e/MySQL-python-1.2.4b5
/private/var/folders/ke/ke8HKCuzGB4LMCJ1eIAGqk+++TI/-Tmp-/easy_install-W_yT0e/MySQL-python-1.2.4b5/distribute-0.6.28-py2.6.egg
unable to execute gcc-4.0: No such file or directory
error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1
Any idea on why gcc-4.0 cannot be found? I have Xcode and gcc 4.2.1 installed.
If you are on Mountain Lion ,Your problem seems to do with not having xcode command line tools installed, if you install them first from xcode then this should work
how to: pip install mysql-python on python 2.7
in order to >>>import MySQLdb
I FOLLOWED ALL THESE STEPS AND I GOT IT WORKING
For brew in case it wont let you update due to permissions.
chgrp -R admin /usr/local
chmod -R g+w /usr/local
chgrp -R admin /Library/Caches/Homebrew
chmod -R g+w /Library/Caches/Homebrew
brew update
brew doctor ## <--i did not use that
brew upgrade
ALSO I IGNORED THE Xcode update error
brew install mysql
pip install mysql-python
when i tried to import MySQLdb it threw me some errors so i followed the advise offered by the link bellow.
sudo ln -s /Users/$USERNAME/anaconda/lib/libssl.1.0.0.dylib /usr/lib/libssl.1.0.0.dylib
sudo ln -s /Users/$USERNAME/anaconda/lib/libcrypto.1.0.0.dylib /usr/lib/libcrypto.1.0.0.dylib
THE LINKS I USED
lib... issues
home bre update permission issue
install mysql with brew