How To Install python-pycurl.x86_64 on Amazon Linux 2

In this tutorial we learn how to install python-pycurl.x86_64 in Amazon Linux 2. python-pycurl.x86_64 is A Python interface to libcurl

Introduction

In this tutorial we learn how to install python-pycurl.x86_64 on Amazon Linux 2.

What is python-pycurl.x86_64

PycURL is a Python interface to libcurl. PycURL can be used to fetch objects identified by a URL from a Python program, similar to the urllib Python module. PycURL is mature, very fast, and supports a lot of features.

We can use yum to install python-pycurl.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install python-pycurl.x86_64.

Install python-pycurl.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python-pycurl.x86_64 using yum by running the following command:

sudo yum -y install python-pycurl.x86_64

How To Uninstall python-pycurl.x86_64 on Amazon Linux 2

To uninstall only the python-pycurl.x86_64 package we can use the following command:

sudo yum remove python-pycurl.x86_64

python-pycurl.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/python2.7/site-packages/curl
/usr/lib64/python2.7/site-packages/curl/__init__.py
/usr/lib64/python2.7/site-packages/curl/__init__.pyc
/usr/lib64/python2.7/site-packages/curl/__init__.pyo
/usr/lib64/python2.7/site-packages/pycurl-7.19.0-py2.7.egg-info
/usr/lib64/python2.7/site-packages/pycurl.so
/usr/share/doc/python-pycurl-7.19.0
/usr/share/doc/python-pycurl-7.19.0/COPYING
/usr/share/doc/python-pycurl-7.19.0/COPYING2
/usr/share/doc/python-pycurl-7.19.0/ChangeLog
/usr/share/doc/python-pycurl-7.19.0/README
/usr/share/doc/python-pycurl-7.19.0/TODO
/usr/share/doc/python-pycurl-7.19.0/doc
/usr/share/doc/python-pycurl-7.19.0/doc/callbacks.html
/usr/share/doc/python-pycurl-7.19.0/doc/curlmultiobject.html
/usr/share/doc/python-pycurl-7.19.0/doc/curlobject.html
/usr/share/doc/python-pycurl-7.19.0/doc/curlshareobject.html
/usr/share/doc/python-pycurl-7.19.0/doc/pycurl.html
/usr/share/doc/python-pycurl-7.19.0/examples
/usr/share/doc/python-pycurl-7.19.0/examples/basicfirst.py
/usr/share/doc/python-pycurl-7.19.0/examples/file_upload.py
/usr/share/doc/python-pycurl-7.19.0/examples/linksys.py
/usr/share/doc/python-pycurl-7.19.0/examples/retriever-multi.py
/usr/share/doc/python-pycurl-7.19.0/examples/retriever.py
/usr/share/doc/python-pycurl-7.19.0/examples/sfquery.py
/usr/share/doc/python-pycurl-7.19.0/examples/xmlrpc_curl.py
/usr/share/doc/python-pycurl-7.19.0/tests
/usr/share/doc/python-pycurl-7.19.0/tests/test.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_cb.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_debug.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_ftp.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_getinfo.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_gtk.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_internals.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_memleak.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_multi.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_multi2.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_multi3.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_multi4.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_multi5.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_multi6.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_multi_socket.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_multi_socket_select.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_multi_timer.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_multi_vs_thread.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_post.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_post2.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_post3.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_reset.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_share.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_socketopen.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_stringio.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_write_abort.py
/usr/share/doc/python-pycurl-7.19.0/tests/test_xmlrpc.py
/usr/share/doc/python-pycurl-7.19.0/tests/util.py
/usr/share/doc/python-pycurl-7.19.0/tests/util.pyc

References

Summary

In this tutorial we learn how to install python-pycurl.x86_64 on Amazon Linux 2 using yum.