Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
sudo yum -y install gcc gcc-c++ kernel-devel
sudo yum -y install python-devel libxslt-devel libffi-devel openssl-devel
pip install cryptography
@hieuhtr

This comment has been minimized.

Copy link

@hieuhtr hieuhtr commented Mar 30, 2016

Yes. It's work. Thanks 👍

@aaanathan

This comment has been minimized.

Copy link

@aaanathan aaanathan commented Dec 7, 2016

I'm getting the same error after installing these modules. Any help?

@tyagiprince

This comment has been minimized.

Copy link

@tyagiprince tyagiprince commented Dec 14, 2016

if it still doesn't work, run yum install kernel-devel --exclude=kernel*

hope that solves your problem.

@yadex

This comment has been minimized.

Copy link

@yadex yadex commented Jan 7, 2017

it works,thanks

@Shirakiina

This comment has been minimized.

Copy link

@Shirakiina Shirakiina commented Mar 6, 2017

it works,thanks

@akirafujiu

This comment has been minimized.

Copy link

@akirafujiu akirafujiu commented Apr 3, 2017

it works, thanks too!

@ZeroDeth

This comment has been minimized.

Copy link

@ZeroDeth ZeroDeth commented Apr 3, 2017

Finally Working, Thanks!

@HumbleFool006

This comment has been minimized.

Copy link

@HumbleFool006 HumbleFool006 commented Apr 21, 2017

python-devel not available in CentOS5

@mnn

This comment has been minimized.

Copy link

@mnn mnn commented Jun 11, 2017

Thanks 👍

@akira-ito

This comment has been minimized.

Copy link

@akira-ito akira-ito commented Oct 4, 2017

Thanks .

@ggupta01

This comment has been minimized.

Copy link

@ggupta01 ggupta01 commented Jan 1, 2018

Thanks it helped 👍

@greatBrain

This comment has been minimized.

Copy link

@greatBrain greatBrain commented Feb 18, 2018

1000 thanks, it worked susscesfully!!!
Thanks..

@anglol

This comment has been minimized.

Copy link

@anglol anglol commented Apr 10, 2018

Thanks !

@zwfang

This comment has been minimized.

Copy link

@zwfang zwfang commented Jun 14, 2018

thanks!

@farhadsh1992

This comment has been minimized.

Copy link

@farhadsh1992 farhadsh1992 commented Jul 16, 2018

don't work on mac

@deepnirmal

This comment has been minimized.

Copy link

@deepnirmal deepnirmal commented Jan 5, 2019

Anything for mac ?

@ustcqidi

This comment has been minimized.

Copy link

@ustcqidi ustcqidi commented Jan 10, 2019

works for me, thanks

@daphnecor

This comment has been minimized.

Copy link

@daphnecor daphnecor commented Jan 11, 2019

Does anyone know how to fix this for mac computers?

@InvisibleRain

This comment has been minimized.

Copy link

@InvisibleRain InvisibleRain commented Mar 15, 2019

Can't download all this in cygwin

@zxj17815

This comment has been minimized.

Copy link

@zxj17815 zxj17815 commented Nov 28, 2019

ERROR: Command errored out with exit status 1: command: /usr/local/python3/bin/python3.5 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-oryori18/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-oryori18/mysqlclient/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-record-mu76pg7o/install-record.txt --single-version-externally-managed --compile cwd: /tmp/pip-install-oryori18/mysqlclient/ Complete output (33 lines): /usr/local/python3/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) running install running build running build_py creating build creating build/lib.linux-x86_64-3.5 creating build/lib.linux-x86_64-3.5/MySQLdb copying MySQLdb/__init__.py -> build/lib.linux-x86_64-3.5/MySQLdb copying MySQLdb/_exceptions.py -> build/lib.linux-x86_64-3.5/MySQLdb copying MySQLdb/compat.py -> build/lib.linux-x86_64-3.5/MySQLdb copying MySQLdb/connections.py -> build/lib.linux-x86_64-3.5/MySQLdb copying MySQLdb/converters.py -> build/lib.linux-x86_64-3.5/MySQLdb copying MySQLdb/cursors.py -> build/lib.linux-x86_64-3.5/MySQLdb copying MySQLdb/release.py -> build/lib.linux-x86_64-3.5/MySQLdb copying MySQLdb/times.py -> build/lib.linux-x86_64-3.5/MySQLdb creating build/lib.linux-x86_64-3.5/MySQLdb/constants copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants running build_ext building 'MySQLdb._mysql' extension creating build/temp.linux-x86_64-3.5 creating build/temp.linux-x86_64-3.5/MySQLdb gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,4,6,'final',0) -D__version__=1.4.6 -I/usr/include/mysql -I/usr/local/python3/include/python3.5m -c MySQLdb/_mysql.c -o build/temp.linux-x86_64-3.5/MySQLdb/_mysql.o -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -DUNIV_LINUX -DUNIV_LINUX MySQLdb/_mysql.c: In function ‘_mysql_ConnectionObject_Initialize’: MySQLdb/_mysql.c:501: error: ‘MYSQL_DEFAULT_AUTH’ undeclared (first use in this function) MySQLdb/_mysql.c:501: error: (Each undeclared identifier is reported only once MySQLdb/_mysql.c:501: error: for each function it appears in.) error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /usr/local/python3/bin/python3.5 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-oryori18/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-oryori18/mysqlclient/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-record-mu76pg7o/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

@neonbulb12

This comment has been minimized.

Copy link

@neonbulb12 neonbulb12 commented Dec 2, 2019

Its works for me too. Thank you.

@Qmanes

This comment has been minimized.

Copy link

@Qmanes Qmanes commented Jan 29, 2020

is correct thx!

@vikaspujar

This comment has been minimized.

Copy link

@vikaspujar vikaspujar commented Jul 22, 2020

Anything for Mac Please

@yustiks

This comment has been minimized.

Copy link

@yustiks yustiks commented Dec 7, 2020

Anything for Mac Please

have the same problem!

@chandanchoudhury

This comment has been minimized.

Copy link

@chandanchoudhury chandanchoudhury commented Dec 26, 2020

Anything for Mac Please

have the same problem!

I, too, have the same problem. Any solution?

@AndyYuanZhou

This comment has been minimized.

Copy link

@AndyYuanZhou AndyYuanZhou commented Jan 20, 2021

Anything for Mac Please

Same!

@saichenko

This comment has been minimized.

Copy link

@saichenko saichenko commented Feb 14, 2021

Thank you!

@TimorChow

This comment has been minimized.

Copy link

@TimorChow TimorChow commented Mar 8, 2021

On AWS EC2, first two lines work for me, and I am using python3

sudo yum -y install gcc gcc-c++ kernel-devel
sudo yum -y install python3-devel libxslt-devel libffi-devel openssl-devel
sudo pip3 install mysqlclient
@VictoireSagbo

This comment has been minimized.

Copy link

@VictoireSagbo VictoireSagbo commented Apr 13, 2021

sudo: yum: command not found

@VictoireSagbo

This comment has been minimized.

Copy link

@VictoireSagbo VictoireSagbo commented Apr 13, 2021

sudo: yum: command not found.
Help to fix this error, please

@vignxs

This comment has been minimized.

Copy link

@vignxs vignxs commented Sep 9, 2021

sudo: yum: command not found.
Help to fix this error, please

install yum

$ sudo apt install yum

@NurElHuda

This comment has been minimized.

Copy link

@NurElHuda NurElHuda commented Oct 30, 2021

Is there any way to install these packages without the root permissions?
I am trying to install them on shared hosting with only basic user permissions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment