{"id":3854,"date":"2016-05-03T13:40:53","date_gmt":"2016-05-03T13:40:53","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2016\/05\/03\/how-to-install-python-on-your-dedicated-server\/"},"modified":"2021-10-22T14:53:33","modified_gmt":"2021-10-22T18:53:33","slug":"how-to-install-python-on-your-dedicated-server","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/","title":{"rendered":"How to Install Python 2.7"},"content":{"rendered":"<p>In this guide, we will go over how to install python 2.7 on your server. This guide requires you to be logged into the servers command line interface as the root user.<\/p>\n<div class=\"alert alert-success\" role=\"alert\"><b>Note:<\/b> You must have <a href=\"\/support\/amp\/obtain-root-access\/\">root access<\/a> to your server to complete this guide. InMotion allows root access on all <a href=\"https:\/\/www.inmotionhosting.com\/vps-hosting\">VPS Hosting<\/a> and <a href=\"https:\/\/www.inmotionhosting.com\/dedicated-servers\">Dedicated Hosting<\/a> plans.<\/div>\n<h2>Installing Python 2.7<\/h2>\n<ol class=\"article_list\">\n<li>Log into your server via the root user.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li>Install all of the requirements via yum.\n<div class=\"cli\"><span style=\"color: red;\">yum -y install gcc gdbm-devel readline-devel ncurses-devel zlib-devel bzip2-devel sqlite-devel db4-devel openssl-devel tk-devel bluez-libs-devel make <\/span><\/div>\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li>Run the commands in the following order to prevent any errors.\n<div class=\"cli\"><span style=\"color: red;\">cd \/usr\/src<br>\nwget https:\/\/www.python.org\/ftp\/python\/2.7.8\/Python-2.7.8.tgz<br>\ntar xvfz Python-2.7.8.tgz<br>\ncd Python-2.7.8<br>\n.\/configure \u2013with-threads \u2013enable-shared<br>\nmake<br>\nmake altinstall<\/span><\/div>\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li>After the make altinstall command is complete run the next set of commands to finish the installation.\n<div class=\"cli\"><span style=\"color: red;\">touch \/etc\/ld.so.conf.d\/usrlocallib.conf<br>\necho \u201c\/usr\/local\/lib\/\u201d &gt;&gt; \/etc\/ld.so.conf.d\/usrlocallib.conf<br>\nldconfig<br>\ncd \/usr\/src<br>\nwget https:\/\/pypi.python.org\/packages\/2.7\/s\/setuptools\/setuptools-0.6c11-py2.7.egg<br>\nsh setuptools-0.6c11-py2.7.egg<br>\neasy_install pip<br>\npip install virtualenv<\/span><\/div>\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<\/ol>\n<p><a href=\"\/support\/images\/stories\/product-guides\/dedicated\/python27\/last-step.jpg\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 15px 15px 15px;\" title=\"Click here to view the larger image\" src=\"\/support\/images\/stories\/product-guides\/dedicated\/python27\/last-step.jpg\" alt=\"\" width=\"200\"><\/a><\/p>\n<div style=\"clear: both;\"><\/div>\n<p>At this point Python 2.7 has been installed and you can run the <strong>python2.7<\/strong> command on your server to enter a new environment.<\/p>\n<div style=\"clear: both;\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we will go over how to install python 2.7 on your server. This guide requires you to be logged into the servers command line interface as the root user. Note: You must have root access to your server to complete this guide. InMotion allows root access on all VPS Hosting and Dedicated<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57014,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4288],"tags":[],"class_list":["post-3854","post","type-post","status-publish","format-standard","hentry","category-website"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Python 2.7 | InMotion Hosting<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Python 2.7 | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"In this guide, we will go over how to install python 2.7 on your server. This guide requires you to be logged into the servers command line interface as the root user. Note: You must have root access to your server to complete this guide. InMotion allows root access on all VPS Hosting and Dedicated Read More &gt;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-05-03T13:40:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-22T18:53:33+00:00\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\"},\"headline\":\"How to Install Python 2.7\",\"datePublished\":\"2016-05-03T13:40:53+00:00\",\"dateModified\":\"2021-10-22T18:53:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/\"},\"wordCount\":216,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Website\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/\",\"name\":\"How to Install Python 2.7 | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2016-05-03T13:40:53+00:00\",\"dateModified\":\"2021-10-22T18:53:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Python 2.7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Python 2.7 | InMotion Hosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Python 2.7 | InMotion Hosting","og_description":"In this guide, we will go over how to install python 2.7 on your server. This guide requires you to be logged into the servers command line interface as the root user. Note: You must have root access to your server to complete this guide. InMotion allows root access on all VPS Hosting and Dedicated Read More >","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2016-05-03T13:40:53+00:00","article_modified_time":"2021-10-22T18:53:33+00:00","author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644"},"headline":"How to Install Python 2.7","datePublished":"2016-05-03T13:40:53+00:00","dateModified":"2021-10-22T18:53:33+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/"},"wordCount":216,"commentCount":2,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Website"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/","name":"How to Install Python 2.7 | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2016-05-03T13:40:53+00:00","dateModified":"2021-10-22T18:53:33+00:00","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-python-on-your-dedicated-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Install Python 2.7"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4323,"name":"Dedicated Hosting","slug":"dedicated-hosting","link":"https:\/\/www.inmotionhosting.com\/support\/product-guides\/dedicated-hosting\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3854","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57014"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=3854"}],"version-history":[{"count":3,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3854\/revisions"}],"predecessor-version":[{"id":90083,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3854\/revisions\/90083"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=3854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=3854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=3854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}