How to install MySQL-python - CentOS - python

I have already installed mysql-devel, it didn't solve the problem.
I am trying to executed the following commands:
sudo easy_install-2.7 MySQL-python
sudo pip2.7 install MySQL-python
in the first one I see:
error: Setup script exited with error: command 'gcc' failed with exit
status 1
In the second one:
Command "/usr/local/bin/python2.7 -u -c "import setuptools,
tokenize;file='/tmp/pip-build-nySVuQ/MySQL-python/setup.py';f=getattr(tokenize,
'open', open)(file);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, file, 'exec'))" install
--record /tmp/pip-eC4DGP-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-nySVuQ/MySQL-python/
Is there any possibility to solve it?
Thanks in advance,

Related

Error when installing src on command prompt [duplicate]

I am failing to install SRC in Linux Mint 19 via PIP. I have attempted to paste the output and failed horribly, I have had to double space everything, otherwise, it comes out as one long run-on sentence. Not sure how to paste a readable output of my Linux terminal here. Sorry.....
Failed building wheel for src
Running setup.py clean for src
Failed to build src
Installing collected packages: src
Running setup.py install for src ... error
Complete output from command /usr/bin/python -u -c "import setuptools,
tokenize;__file__='/tmp/pip-build-l2mswq/src/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/pip-AeHl8U-record/install-record.txt --single-version-externally-managed --
compile --user --prefix=:
running install
error: error in command line: command 'InstallCommand' has no such option
'compile'
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-
build-l2mswq/src/setup.py';f=getattr(tokenize, 'open', open)
(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code,
__file__, 'exec'))" install --record /tmp/pip-AeHl8U-record/install-record.txt -
-single-version-externally-managed --compile --user --prefix=" failed with error
code 1 in /tmp/pip-build-l2mswq/src/
pip install src
tries to install src from PyPI — a package specifically created to not to be installed.
What are you trying to install?

Error when installing django channels on Fedora 24

This is the error that comes up when installing django channels with pip install channels:
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/home/arunvm/Desktop/CleverHires/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-oisfgik6/twisted/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-689vby9j-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/arunvm/Desktop/CleverHires/include/site/python3.5/twisted" failed with error code 1 in /tmp/pip-build-oisfgik6/twisted/
You don't have Python headers installed.
Please run...
>>> sudo yum install python-devel

error: command 'clang' failed with exit status 1 on pip install TA-Lib

I'm trying to instal TA-Lib in Mac Sierra with:
sudo pip install TA-Lib
But I'm getting this error:
error: command 'clang' failed with exit status 1
----------------------------------------
Command "/usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-bqV3xq/TA-Lib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-5HBbJo-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-bqV3xq/TA-Lib/
How can I fix this?
Installation instructions from their github readme indicate that on macos you need the following:
brew install ta-lib

Pip thrift and impyla not installing on Linux

I'm trying to get pip (3.6) to install the packages thrift-sasl, thrift-py and impyla, on CentOS 6, and I keep getting this error.
Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;file='/tmp/pip-build-rv4_laqv/thriftpy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-hogvggj3-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-rv4_laqv/thriftpy/
Things I have tried
Updating pip
Installing/updating setuptools
yum install gcc-c++ python-devel.x86_64 cyrus-sasl-devel.x86_64
Any suggestions or insights?

Problems installing gx_freeze

I have Ubuntu 14.04 LTS with Python 2.7.6, and I want to install cx_Freeze. I used the command:
pip install cx_Freeze
and I got the error:
fatal error: Python.h: No such file or directory compilation terminated.
so I did:
sudo apt-get install python-dev
but now I'm getting:
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_emanuele/cx-Freeze/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Hd6_EY-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_emanuele/cx-Freeze
Storing debug log for failure in /home/emanuele/.pip/pip.log
what does it mean this error and how can I fix it?

Categories

Resources