{"id":57,"date":"2018-04-12T17:43:09","date_gmt":"2018-04-12T17:43:09","guid":{"rendered":"http:\/\/www.iam8up.com\/?p=57"},"modified":"2018-04-12T17:43:09","modified_gmt":"2018-04-12T17:43:09","slug":"centos-6-with-python-2-7","status":"publish","type":"post","link":"https:\/\/www.iam8up.com\/?p=57","title":{"rendered":"CentOS 6 with Python 2.7"},"content":{"rendered":"<p>https:\/\/danieleriksson.net\/2017\/02\/08\/how-to-install-latest-python-on-centos\/<\/p>\n<p>&nbsp;<\/p>\n<blockquote>\n<div id=\"crayon-5ace5590318a9513193975\" class=\"crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #666666;\" data-settings=\" touchscreen minimize scroll-mouseover\">\n<div class=\"crayon-main\" style=\"font-weight: inherit; font-style: inherit;\"># Start by making sure your system is up-to-date:<br \/>\nyum update<br \/>\n# Compilers and related tools:<br \/>\nyum groupinstall-y&#8221;development tools&#8221;<br \/>\n# Libraries needed during compilation to enable all features of Python:<br \/>\nyum install-yzlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel expat-devel<br \/>\n# If you are on a clean &#8220;minimal&#8221; install of CentOS you also need the wget tool:<br \/>\nyum install-ywget<\/div>\n<div class=\"crayon-main\" style=\"font-weight: inherit; font-style: inherit;\"><\/div>\n<\/div>\n<div id=\"crayon-5ace5590318b6206367157-2\" class=\"crayon-line crayon-striped-line\" style=\"color: #000000;\">wget http:\/\/python.org\/ftp\/python\/2.7.14\/Python-2.7.14.tar.xz<br \/>\ntar xf Python-2.7.14.tar.xz<br \/>\ncdPython-2.7.14<br \/>\n.\/configure&#8211;prefix=\/usr\/local&#8211;enable-unicode=ucs4&#8211;enable-shared LDFLAGS=&#8221;-Wl,-rpath \/usr\/local\/lib&#8221;<br \/>\nmake&amp;&amp;makealtinstall<\/div>\n<p><span class=\"crayon-v\" style=\"font-weight: inherit !important; font-style: inherit; color: #002d7a !important;\"><br \/>\n<\/span>wget https:\/\/bootstrap.pypa.io\/get-pip.py<\/p>\n<p># Then execute it using Python 2.7 and\/or Python 3.6:<br \/>\npython2.7 get-pip.py<\/p>\n<p># With pip installed you can now do things like this:<br \/>\npip2.7 install [packagename]<br \/>\npip2.7 install &#8211;upgrade [packagename]<br \/>\npip2.7 uninstall [packagename]<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/danieleriksson.net\/2017\/02\/08\/how-to-install-latest-python-on-centos\/ &nbsp; # Start by making sure your system is up-to-date: yum update # Compilers and related tools: yum groupinstall-y&#8221;development tools&#8221; # Libraries needed during compilation to enable all features of Python: yum install-yzlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel expat-devel # If you are on a clean &#8220;minimal&#8221; install of &hellip; <a href=\"https:\/\/www.iam8up.com\/?p=57\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;CentOS 6 with Python 2.7&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.iam8up.com\/index.php?rest_route=\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.iam8up.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iam8up.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iam8up.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iam8up.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=57"}],"version-history":[{"count":2,"href":"https:\/\/www.iam8up.com\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":59,"href":"https:\/\/www.iam8up.com\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions\/59"}],"wp:attachment":[{"href":"https:\/\/www.iam8up.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iam8up.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iam8up.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}