{"id":1342,"date":"2017-04-15T17:58:00","date_gmt":"2017-04-15T12:28:00","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=1342"},"modified":"2017-04-15T17:58:00","modified_gmt":"2017-04-15T12:28:00","slug":"install-python-pip-boto-windows-server","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/install-python-pip-boto-windows-server\/","title":{"rendered":"Install Python, PIP and Boto on Windows server"},"content":{"rendered":"<h3>Install Python, PIP and Boto on Windows server 2016<\/h3>\n<p><strong>Date Posted:15-04-2017<\/strong><\/p>\n<p>Python is a famous scripting language and we will explain on how to install python, pip and boto library on windows server. In this post, we will cover on installing python 3 and pip python installer. Additionally, this post deals with how to install boto library using pip installer.<\/p>\n<h4>Implementation:<\/h4>\n<p>Open\u00a0<em>Powershell\u00a0<\/em> and set Execution policy for user to remote signed. \u00a0This will let the server to download and run the script from internet.<\/p>\n<p><code>Set-ExecutionPolicy -Scope CurrentUser<\/code><\/p>\n<p>when it prompt for execution policy, enter\u00a0<strong>RemoteSigned<\/strong><\/p>\n<p>Create \u00a0a webclient object on powershell.<\/p>\n<p><code>$script = New-Object Net.WebClient<\/code><\/p>\n<p>Setup a download string for chocolatey to download. Chocolatey is similar to <em>apt-get <\/em>or\u00a0<em>yum\u00a0<\/em> command which we used in linux distro<\/p>\n<p><code>$script.DownloadString(\"https:\/\/chocolatey.org\/install.ps1\")<\/code><\/p>\n<p>Install chocolatey using the below command.<\/p>\n<p><code>iwr https:\/\/chocolatey.org\/install.ps1 -UseBasicParsing | iex<\/code><\/p>\n<p>where,<\/p>\n<p>iwr stands for Invoke-webrequest<\/p>\n<p>iex stands for Invoke-Expression<\/p>\n<p>The above command will install chocolatey on the windows host.<\/p>\n<h5>Install Python 3:<\/h5>\n<p>Using chocolatey, we will be installing python3 version on the windows server.<\/p>\n<p><code>choco install -y python3<\/code><\/p>\n<p>This will install python3 version, pip and the installation path will be<em> C:\\Python3\\python.exe<\/em><\/p>\n<p>Enter the below command to check the python version. Moreover, you can check the installation as well.<\/p>\n<p><code>python -V<\/code><\/p>\n<h5>Install Boto:<\/h5>\n<p>Boto is a module to connect aws resources in a python environment. We will use pip to install boto module on windows server.<\/p>\n<p>Cd to the python installed directory<\/p>\n<p><code>cd c:\\python3<\/code><\/p>\n<p>Execute the below command to install boto module<\/p>\n<p><code>pip.exe install boto<\/code><\/p>\n<h5>Additional Information:<\/h5>\n<p>As an additional information, we will explain on installing\u00a0<em> nano\u00a0<\/em>editor on windows server. Nano is a command line editor which is famous on linux distro. This will be useful to edit files on powershell.<\/p>\n<p>Execute below choco command to install nano editor.<\/p>\n<p><code>choco install -y nano<\/code><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install Python, PIP and Boto on Windows server 2016 Date Posted:15-04-2017 Python is a famous scripting language and we will [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1019],"tags":[322,321,292,35],"class_list":["post-1342","post","type-post","status-publish","format-standard","hentry","category-cloud-aws","tag-boto","tag-choco","tag-python","tag-windows","psol-cat-cloud-aws"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-lE","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=1342"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1342\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=1342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=1342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=1342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}