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
@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