Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kenzo0107/f204c7af2b764d15a6c6 to your computer and use it in GitHub Desktop.
Save kenzo0107/f204c7af2b764d15a6c6 to your computer and use it in GitHub Desktop.
sudo yum -y install gcc gcc-c++ kernel-devel
sudo yum -y install python-devel libxslt-devel libffi-devel openssl-devel
pip install cryptography
@HumbleFool006
Copy link

HumbleFool006 commented Apr 21, 2017

python-devel not available in CentOS5

@mnn
Copy link

mnn commented Jun 11, 2017

Thanks 👍

@akira-ito
Copy link

Thanks .

@ggupta01
Copy link

ggupta01 commented Jan 1, 2018

Thanks it helped 👍

@greatBrain
Copy link

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

@anglol
Copy link

anglol commented Apr 10, 2018

Thanks !

@zwfang
Copy link

zwfang commented Jun 14, 2018

thanks!

@farhadsh1992
Copy link

don't work on mac

@deepnirmal
Copy link

Anything for mac ?

@ustcqidi
Copy link

works for me, thanks

@daphnecor
Copy link

Does anyone know how to fix this for mac computers?

@InvisibleRain
Copy link

Can't download all this in cygwin

@neonlight1203
Copy link

Its works for me too. Thank you.

@Qmanes
Copy link

Qmanes commented Jan 29, 2020

is correct thx!

@vikaspujar
Copy link

Anything for Mac Please

@yustiks
Copy link

yustiks commented Dec 7, 2020

Anything for Mac Please

have the same problem!

@chandanchoudhury
Copy link

Anything for Mac Please

have the same problem!

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

@AndyYuanZhou
Copy link

Anything for Mac Please

Same!

@saichenko
Copy link

Thank you!

@TimorChow
Copy link

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
Copy link

sudo: yum: command not found

@VictoireSagbo
Copy link

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

@vignxs
Copy link

vignxs commented Sep 9, 2021

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

install yum

$ sudo apt install yum

@NurElHuda
Copy link

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.

@hafiz031
Copy link

A non-trivial solution:

yum install openssl-devel bzip2-devel libffi-devel sqlite-devel
yum groupinstall "Development Tools"

Then re-build your Python. It will make Python equipped with these build utilities (gcc, g++ etc.):

cd your/downloaded/python/directory
./configure --enable-optimizations
make altinstall

If you are using venv, you have to create the venv again under this corrected python installation.

@basavaraja7371
Copy link

Thanks. It works.

@vinicius-oa
Copy link

It worked, thanks!

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