{"id":2922,"date":"2017-02-01T05:41:18","date_gmt":"2017-02-01T05:41:18","guid":{"rendered":"http:\/\/www.siliconhouse.net\/support\/?page_id=2922"},"modified":"2017-02-03T14:06:23","modified_gmt":"2017-02-03T14:06:23","slug":"upgrade-python-python3","status":"publish","type":"page","link":"https:\/\/www.siliconhouse.net\/support\/dedicated-servers\/linux-dedicated-server-hosting\/upgrade-python-python3\/","title":{"rendered":"How to Upgrade Python To Python3 in CentOS ?"},"content":{"rendered":"<div class=\"dedicated_server_hosting_features_center\">\n<div class=\"reseller_web_hosting_support_navigation\"><aside id=\"bcn_widget-2\" class=\"widget widget_breadcrumb_navxt amr_widget\"><span property=\"itemListElement\" typeof=\"ListItem\"><a property=\"item\" typeof=\"WebPage\" title=\"Go to Silicon House - Reseller Hosting - Dedicated Servers - Cloud.\" href=\"https:\/\/www.siliconhouse.net\/support\" class=\"home\"><span property=\"name\" style=\"color: #232323\"><b>Support Home<\/b><\/span><\/a><meta property=\"position\" content=\"1\"><\/span><\/aside><\/div>\n<div class=\"dedicated_server_hosting_features\">\nPython 3 upgrade is possible only with the root access of the server, it is not supported by cPanel. Since it is installed as root there is a chance to break the cPanel existing files and other default softwares . You can follow the below procedure and install python 3 in the server via SSH, Other than this please dont change any configuration files in the server without the confirmation of the server admin.<\/div>\n<p><aside id=\"text-16\" class=\"widget widget_text amr_widget\">\t\t\t<div class=\"textwidget\"><div class=\"reseller_web_hosting_support_advts\">\r\n\r\n<div class=\"reseller_web_hosting_support_advts_left\">\r\n<a href=\"https:\/\/www.siliconhouse.net\/linux-reseller-web-hosting-india\" target=\"_blank\"><img decoding=\"async\" border=\"0\" src=\"https:\/\/www.siliconhouse.net\/wp-content\/uploads\/2018\/06\/336X280-saffron-unlimited-499-kickstart.gif\" width=\"336\" height=\"280\" alt=\"Reseller Hosting Special Offer\"><\/a>\r\n<\/div>\r\n\r\n<div class=\"reseller_web_hosting_support_advts_right\">\r\n<a href=\"https:\/\/www.siliconhouse.net\/linux-cloud-server-hosting-india\" target=\"_blank\"><img decoding=\"async\" border=\"0\" src=\"https:\/\/www.siliconhouse.net\/wp-content\/uploads\/2018\/06\/336X280-purple-enterprise-cloud-stak-19.jpg\" width=\"336\" height=\"280\" alt=\"Enterprise Cloud Stack\"><\/a>\r\n<\/div>\r\n\r\n<\/div><\/div>\n\t\t<\/aside><br \/>\n<aside id=\"text-20\" class=\"extendedwopts-md-center widget widget_text amr_widget\">\t\t\t<div class=\"textwidget\"><div class=\"reseller_web_hosting_support_advts\">\r\n<div class=\"reseller_web_hosting_support_advts_left\">\r\n<img decoding=\"async\" border=\"0\" src=\"http:\/\/www.siliconhouse.net\/support\/wp-content\/uploads\/2016\/12\/reseller-hosting-249-offer.gif\" width=\"320\" height=\"100\" alt=\"Reseller Hosting Special Offer\">\r\n<\/div>\r\n\r\n<div class=\"reseller_web_hosting_support_advts_right\">\r\n<img decoding=\"async\" border=\"0\" src=\"http:\/\/www.siliconhouse.net\/support\/wp-content\/uploads\/2016\/12\/reseller-hosting-249-offer.gif\" width=\"320\" height=\"100\" alt=\"Reseller Hosting Special Offer\">\r\n<\/div>\r\n\r\n<\/div><\/div>\n\t\t<\/aside><\/p>\n<p><aside id=\"text-24\" class=\"widget widget_text amr_widget\">\t\t\t<div class=\"textwidget\"><script>\r\n    videojs('examplePlayer',{},function(){\r\n      var player = this;\r\n      player.preroll({\r\n        src:{src:\"http:\/\/www.siliconhouse.net\/support\/wp-content\/uploads\/2016\/11\/reseller-hosting-promo-15secs.mp4\",type:\"video\/mp4\"},\r\n        href:\"http:\/\/www.siliconhouse.net\/linux-reseller-hosting-india\",\r\n        adsOptions: {debug:true}\r\n      });\r\n    });\r\n  <\/script><\/div>\n\t\t<\/aside><br \/>\n<aside id=\"text-25\" class=\"widget widget_text amr_widget\">\t\t\t<div class=\"textwidget\"><script>\r\n    videojs('examplePlayer',{},function(){\r\n      var player = this;\r\n      player.preroll({\r\n        src:{src:\"http:\/\/www.siliconhouse.net\/support\/wp-content\/uploads\/2016\/11\/reseller-hosting-promo-15secs.mp4\",type:\"video\/mp4\"},\r\n        href:\"http:\/\/www.siliconhouse.net\/linux-reseller-hosting-india\",\r\n        adsOptions: {debug:true}\r\n      });\r\n    });\r\n  <\/script><\/div>\n\t\t<\/aside><\/p>\n<\/div>\n<div class=\"dedicated_server_hosting_features\">\n<div class=\"responsive-tabs\">\n<h2 class=\"tabtitle\">Procedure<\/h2>\n<div class=\"tabcontent\">\n\n<p>Kindly follow the below procedure to Upgrade to python 3.5.<\/p>\n<p><strong>1. Login to the SSH :\u00a0<\/strong><\/p>\n<p>Download the putty software from &#8220;http:\/\/www.putty.org\/&#8221; and install it in your system.<\/p>\n<p><strong>2.<\/strong> After installing it, Launch putty and enter the below details.<\/p>\n<p><strong>\u00a0 \u00a0 \u00a0 \u00a0Host name (or IP address) : Give the server IP<\/strong><br \/>\n<strong>\u00a0 \u00a0 \u00a0 \u00a0Port : Give the port number<\/strong><\/p>\n<p>Click on open<\/p>\n<p><strong>3.<\/strong> After that it asks to enter the username.<\/p>\n<p><strong>\u00a0 \u00a0 \u00a0 \u00a0login as:<\/strong><\/p>\n<p>Give as &#8220;<strong>root<\/strong>&#8221;<\/p>\n<p>then copy the root password and go to the putty, in password field if you click the right button \u00a0of the mouse and press enter, the password will be placed and logged in to shell as root user.<\/p>\n<p><strong>4.<\/strong> Then you can goto the tmp direcotory by using the command<\/p>\n<p>cd \/tmp<\/p>\n<p><strong>5. Steps To Upgrade 3.5:<\/strong><\/p>\n<p>[ Have to put the following commands one by one ]<\/p>\n<p>yum install yum-utils<br \/>\nyum-builddep python<br \/>\ncd \/usr\/local\/src\/asm<br \/>\nmkdir software<br \/>\ncd software<br \/>\ncurl -O https:\/\/www.python.org\/ftp\/python\/3.5.0\/Python-3.5.0.tgz<br \/>\ntar xf Python-3.5.0.tgz<br \/>\ncd Python-3.5.0<br \/>\n.\/configure<br \/>\nmake<br \/>\nmake install<\/p>\n<p>To check python version please use ,<\/p>\n<p>python3 &#8211;version<\/p>\n<p>[ alias python=&#8217;\/usr\/local\/bin\/python3.5&#8242; ]<\/p>\n<p><strong>6. library files installation<\/strong><\/p>\n<p>pip install pyenchant<br \/>\npip install pyenchant<br \/>\nyum install enchant<br \/>\npip install mysql-python<br \/>\npip install ez_setup<br \/>\npip install unroll<br \/>\npip install -U pip<br \/>\npip install pyenchant<br \/>\nimport enchant<\/p>\n<p><strong>7.<\/strong> Now you can able to use python 3 with all the\u00a0library files .<\/p>\n<\/div><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Python 3 upgrade is possible only with the root access of the server, it is not supported by cPanel. Since<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":27,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2922","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Upgrade Python To Python3 in CentOS<\/title>\n<meta name=\"description\" content=\"To upgrade python to python3 in CentOS you have to login as root and you have to install it using the external packages.\" \/>\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.siliconhouse.net\/support\/dedicated-servers\/linux-dedicated-server-hosting\/upgrade-python-python3\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Upgrade Python To Python3 in CentOS\" \/>\n<meta property=\"og:description\" content=\"To upgrade python to python3 in CentOS you have to login as root and you have to install it using the external packages.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.siliconhouse.net\/support\/dedicated-servers\/linux-dedicated-server-hosting\/upgrade-python-python3\/\" \/>\n<meta property=\"og:site_name\" content=\"Silicon House - Reseller Hosting - Dedicated Servers - Cloud\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/siliconhouse.net\" \/>\n<meta property=\"article:modified_time\" content=\"2017-02-03T14:06:23+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@siliconhouse\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.siliconhouse.net\\\/support\\\/dedicated-servers\\\/linux-dedicated-server-hosting\\\/upgrade-python-python3\\\/\",\"url\":\"https:\\\/\\\/www.siliconhouse.net\\\/support\\\/dedicated-servers\\\/linux-dedicated-server-hosting\\\/upgrade-python-python3\\\/\",\"name\":\"How to Upgrade Python To Python3 in CentOS\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.siliconhouse.net\\\/support\\\/#website\"},\"datePublished\":\"2017-02-01T05:41:18+00:00\",\"dateModified\":\"2017-02-03T14:06:23+00:00\",\"description\":\"To upgrade python to python3 in CentOS you have to login as root and you have to install it using the external packages.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.siliconhouse.net\\\/support\\\/dedicated-servers\\\/linux-dedicated-server-hosting\\\/upgrade-python-python3\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.siliconhouse.net\\\/support\\\/dedicated-servers\\\/linux-dedicated-server-hosting\\\/upgrade-python-python3\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.siliconhouse.net\\\/support\\\/dedicated-servers\\\/linux-dedicated-server-hosting\\\/upgrade-python-python3\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.siliconhouse.net\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Dedicated Servers\",\"item\":\"https:\\\/\\\/www.siliconhouse.net\\\/support\\\/dedicated-servers\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Linux Dedicated Server Hosting\",\"item\":\"https:\\\/\\\/www.siliconhouse.net\\\/support\\\/dedicated-servers\\\/linux-dedicated-server-hosting\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How to Upgrade Python To Python3 in CentOS ?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.siliconhouse.net\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/www.siliconhouse.net\\\/support\\\/\",\"name\":\"Silicon House - Reseller Hosting - Dedicated Servers - Cloud\",\"description\":\"Reseller Hosting - Dedicated Servers - Cloud\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.siliconhouse.net\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.siliconhouse.net\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.siliconhouse.net\\\/support\\\/#organization\",\"name\":\"Silicon House\",\"url\":\"https:\\\/\\\/www.siliconhouse.net\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.siliconhouse.net\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.siliconhouse.net\\\/support\\\/wp-content\\\/uploads\\\/2016\\\/10\\\/siliconhouse-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.siliconhouse.net\\\/support\\\/wp-content\\\/uploads\\\/2016\\\/10\\\/siliconhouse-logo.png\",\"width\":42,\"height\":40,\"caption\":\"Silicon House\"},\"image\":{\"@id\":\"https:\\\/\\\/www.siliconhouse.net\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/siliconhouse.net\",\"https:\\\/\\\/x.com\\\/siliconhouse\",\"https:\\\/\\\/www.youtube.com\\\/siliconhouse\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Upgrade Python To Python3 in CentOS","description":"To upgrade python to python3 in CentOS you have to login as root and you have to install it using the external packages.","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.siliconhouse.net\/support\/dedicated-servers\/linux-dedicated-server-hosting\/upgrade-python-python3\/","og_locale":"en_US","og_type":"article","og_title":"How to Upgrade Python To Python3 in CentOS","og_description":"To upgrade python to python3 in CentOS you have to login as root and you have to install it using the external packages.","og_url":"https:\/\/www.siliconhouse.net\/support\/dedicated-servers\/linux-dedicated-server-hosting\/upgrade-python-python3\/","og_site_name":"Silicon House - Reseller Hosting - Dedicated Servers - Cloud","article_publisher":"https:\/\/www.facebook.com\/siliconhouse.net","article_modified_time":"2017-02-03T14:06:23+00:00","twitter_card":"summary_large_image","twitter_site":"@siliconhouse","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.siliconhouse.net\/support\/dedicated-servers\/linux-dedicated-server-hosting\/upgrade-python-python3\/","url":"https:\/\/www.siliconhouse.net\/support\/dedicated-servers\/linux-dedicated-server-hosting\/upgrade-python-python3\/","name":"How to Upgrade Python To Python3 in CentOS","isPartOf":{"@id":"https:\/\/www.siliconhouse.net\/support\/#website"},"datePublished":"2017-02-01T05:41:18+00:00","dateModified":"2017-02-03T14:06:23+00:00","description":"To upgrade python to python3 in CentOS you have to login as root and you have to install it using the external packages.","breadcrumb":{"@id":"https:\/\/www.siliconhouse.net\/support\/dedicated-servers\/linux-dedicated-server-hosting\/upgrade-python-python3\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.siliconhouse.net\/support\/dedicated-servers\/linux-dedicated-server-hosting\/upgrade-python-python3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.siliconhouse.net\/support\/dedicated-servers\/linux-dedicated-server-hosting\/upgrade-python-python3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.siliconhouse.net\/support\/"},{"@type":"ListItem","position":2,"name":"Dedicated Servers","item":"https:\/\/www.siliconhouse.net\/support\/dedicated-servers\/"},{"@type":"ListItem","position":3,"name":"Linux Dedicated Server Hosting","item":"https:\/\/www.siliconhouse.net\/support\/dedicated-servers\/linux-dedicated-server-hosting\/"},{"@type":"ListItem","position":4,"name":"How to Upgrade Python To Python3 in CentOS ?"}]},{"@type":"WebSite","@id":"https:\/\/www.siliconhouse.net\/support\/#website","url":"https:\/\/www.siliconhouse.net\/support\/","name":"Silicon House - Reseller Hosting - Dedicated Servers - Cloud","description":"Reseller Hosting - Dedicated Servers - Cloud","publisher":{"@id":"https:\/\/www.siliconhouse.net\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.siliconhouse.net\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.siliconhouse.net\/support\/#organization","name":"Silicon House","url":"https:\/\/www.siliconhouse.net\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.siliconhouse.net\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.siliconhouse.net\/support\/wp-content\/uploads\/2016\/10\/siliconhouse-logo.png","contentUrl":"https:\/\/www.siliconhouse.net\/support\/wp-content\/uploads\/2016\/10\/siliconhouse-logo.png","width":42,"height":40,"caption":"Silicon House"},"image":{"@id":"https:\/\/www.siliconhouse.net\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/siliconhouse.net","https:\/\/x.com\/siliconhouse","https:\/\/www.youtube.com\/siliconhouse"]}]}},"_links":{"self":[{"href":"https:\/\/www.siliconhouse.net\/support\/wp-json\/wp\/v2\/pages\/2922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.siliconhouse.net\/support\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.siliconhouse.net\/support\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.siliconhouse.net\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.siliconhouse.net\/support\/wp-json\/wp\/v2\/comments?post=2922"}],"version-history":[{"count":11,"href":"https:\/\/www.siliconhouse.net\/support\/wp-json\/wp\/v2\/pages\/2922\/revisions"}],"predecessor-version":[{"id":2995,"href":"https:\/\/www.siliconhouse.net\/support\/wp-json\/wp\/v2\/pages\/2922\/revisions\/2995"}],"up":[{"embeddable":true,"href":"https:\/\/www.siliconhouse.net\/support\/wp-json\/wp\/v2\/pages\/27"}],"wp:attachment":[{"href":"https:\/\/www.siliconhouse.net\/support\/wp-json\/wp\/v2\/media?parent=2922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}