{"id":1757,"date":"2022-04-20T09:46:00","date_gmt":"2022-04-20T16:46:00","guid":{"rendered":"https:\/\/jmcristobal.com\/?p=1757"},"modified":"2022-03-26T17:02:09","modified_gmt":"2022-03-27T00:02:09","slug":"install-python-in-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/","title":{"rendered":"Instalar python en Ubuntu 20.04"},"content":{"rendered":"<p>Python 3 est\u00e1 instalado por defecto en la distribuci\u00f3n Linux Ubuntu 20.04.<\/p>\n\n\n\n<p>Para asegurarnos de que nuestras versiones est\u00e1n al d\u00eda, vamos a actualizar el sistema con los siguientes comandos:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"adoc\" class=\"language-adoc\"><kbd>sudo apt update\nsudo apt -y upgrade<\/kbd><\/code><\/pre>\n\n\n\n<p>Comando para comprobar la versi\u00f3n de Python que tenemos instalada:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"adoc\" class=\"language-adoc\">python3 -V<\/code><\/pre>\n\n\n\n<p>Necesitaremos instalar el paquete python3-pip. Pip es una herramienta que instalar\u00e1 y gestionar\u00e1 paquetes de software para Python. La instalaci\u00f3n se realiza con el siguiente comando:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"adoc\" class=\"language-adoc\">sudo apt install -y python3-pip<\/code><\/pre>\n\n\n\n<p>Puedes comprobar la versi\u00f3n del comando pip con el siguiente comando:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"adoc\" class=\"language-adoc\">pip -V \npip3 -V<\/code><\/pre>\n\n\n\n<p>Una vez instalado el comando pip, podemos instalar los distintos paquetes de python seg\u00fan nuestras necesidades.<\/p>\n\n\n\n<p>Pip se utiliza con el siguiente comando:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"adoc\" class=\"language-adoc\">pip3 install package_name<\/code><\/pre>\n\n\n\n<p>Para ver la lista de todos los comandos y opciones de pip utilice el siguiente comando:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"adoc\" class=\"language-adoc\">pip3 --help<\/code><\/pre>\n\n\n\n<p>Puedes obtener m\u00e1s informaci\u00f3n sobre un comando espec\u00edfico usando:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"adoc\" class=\"language-adoc\">pip3 &lt;command> --help<\/code><\/pre>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Python 3 is installed by default on the Ubuntu 20.04 Linux distribution. To ensure that our versions are up to date, we <\/p>","protected":false},"author":2,"featured_media":1761,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[529,237],"tags":[281,530,584,539,532],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Install python in Ubuntu 20.04 - JMCristobal<\/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.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install python in Ubuntu 20.04 - JMCristobal\" \/>\n<meta property=\"og:description\" content=\"Python 3 is installed by default on the Ubuntu 20.04 Linux distribution. To ensure that our versions are up to date, we\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/\" \/>\n<meta property=\"og:site_name\" content=\"JMCristobal\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/web.facebook.com\/JMCristobalHomepage\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-20T16:46:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-27T00:02:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.jmcristobal.com\/wp-content\/uploads\/2022\/04\/logo-python.png\" \/>\n\t<meta property=\"og:image:width\" content=\"288\" \/>\n\t<meta property=\"og:image:height\" content=\"127\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"JMCristobal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@jmcristobalhome\" \/>\n<meta name=\"twitter:site\" content=\"@jmcristobalhome\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"JMCristobal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/\"},\"author\":{\"name\":\"JMCristobal\",\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/#\/schema\/person\/e7cca8371cd491cf444cc824f30ae118\"},\"headline\":\"Install python in Ubuntu 20.04\",\"datePublished\":\"2022-04-20T16:46:00+00:00\",\"dateModified\":\"2022-03-27T00:02:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/\"},\"wordCount\":135,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/#organization\"},\"keywords\":[\"cli\",\"linux\",\"pip\",\"python\",\"ubuntu\"],\"articleSection\":[\"Devnet\",\"Linux\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/\",\"url\":\"https:\/\/www.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/\",\"name\":\"Install python in Ubuntu 20.04 - JMCristobal\",\"isPartOf\":{\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/#website\"},\"datePublished\":\"2022-04-20T16:46:00+00:00\",\"dateModified\":\"2022-03-27T00:02:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install python in Ubuntu 20.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/#website\",\"url\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/\",\"name\":\"JMCristobal\",\"description\":\"Networking and more\",\"publisher\":{\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/#organization\",\"name\":\"JMCristobal\",\"url\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jmcristobal.com\/wp-content\/uploads\/2021\/09\/Logo-JMCristobal.png\",\"contentUrl\":\"https:\/\/jmcristobal.com\/wp-content\/uploads\/2021\/09\/Logo-JMCristobal.png\",\"width\":518,\"height\":436,\"caption\":\"JMCristobal\"},\"image\":{\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.youtube.com\/JMCristobalHomepage\",\"https:\/\/web.facebook.com\/JMCristobalHomepage\",\"https:\/\/twitter.com\/jmcristobalhome\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/#\/schema\/person\/e7cca8371cd491cf444cc824f30ae118\",\"name\":\"JMCristobal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b549739a2a57394801aef27a76efdb3d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b549739a2a57394801aef27a76efdb3d?s=96&d=mm&r=g\",\"caption\":\"JMCristobal\"},\"url\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/author\/jmcristobal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Install python in Ubuntu 20.04 - JMCristobal","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.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/","og_locale":"es_ES","og_type":"article","og_title":"Install python in Ubuntu 20.04 - JMCristobal","og_description":"Python 3 is installed by default on the Ubuntu 20.04 Linux distribution. To ensure that our versions are up to date, we","og_url":"https:\/\/www.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/","og_site_name":"JMCristobal","article_publisher":"https:\/\/web.facebook.com\/JMCristobalHomepage","article_published_time":"2022-04-20T16:46:00+00:00","article_modified_time":"2022-03-27T00:02:09+00:00","og_image":[{"width":288,"height":127,"url":"https:\/\/www.jmcristobal.com\/wp-content\/uploads\/2022\/04\/logo-python.png","type":"image\/png"}],"author":"JMCristobal","twitter_card":"summary_large_image","twitter_creator":"@jmcristobalhome","twitter_site":"@jmcristobalhome","twitter_misc":{"Escrito por":"JMCristobal","Tiempo de lectura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/#article","isPartOf":{"@id":"https:\/\/www.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/"},"author":{"name":"JMCristobal","@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/#\/schema\/person\/e7cca8371cd491cf444cc824f30ae118"},"headline":"Install python in Ubuntu 20.04","datePublished":"2022-04-20T16:46:00+00:00","dateModified":"2022-03-27T00:02:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/"},"wordCount":135,"commentCount":0,"publisher":{"@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/#organization"},"keywords":["cli","linux","pip","python","ubuntu"],"articleSection":["Devnet","Linux"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/","url":"https:\/\/www.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/","name":"Install python in Ubuntu 20.04 - JMCristobal","isPartOf":{"@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/#website"},"datePublished":"2022-04-20T16:46:00+00:00","dateModified":"2022-03-27T00:02:09+00:00","breadcrumb":{"@id":"https:\/\/www.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.jmcristobal.com\/es\/2022\/04\/20\/install-python-in-ubuntu-20-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/d1gdqjscev06po.cloudfront.net\/"},{"@type":"ListItem","position":2,"name":"Install python in Ubuntu 20.04"}]},{"@type":"WebSite","@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/#website","url":"https:\/\/d1gdqjscev06po.cloudfront.net\/","name":"JMCristobal","description":"Networking and more","publisher":{"@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/d1gdqjscev06po.cloudfront.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/#organization","name":"JMCristobal","url":"https:\/\/d1gdqjscev06po.cloudfront.net\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/#\/schema\/logo\/image\/","url":"https:\/\/jmcristobal.com\/wp-content\/uploads\/2021\/09\/Logo-JMCristobal.png","contentUrl":"https:\/\/jmcristobal.com\/wp-content\/uploads\/2021\/09\/Logo-JMCristobal.png","width":518,"height":436,"caption":"JMCristobal"},"image":{"@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.youtube.com\/JMCristobalHomepage","https:\/\/web.facebook.com\/JMCristobalHomepage","https:\/\/twitter.com\/jmcristobalhome"]},{"@type":"Person","@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/#\/schema\/person\/e7cca8371cd491cf444cc824f30ae118","name":"JMCristobal","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b549739a2a57394801aef27a76efdb3d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b549739a2a57394801aef27a76efdb3d?s=96&d=mm&r=g","caption":"JMCristobal"},"url":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/author\/jmcristobal\/"}]}},"jetpack_featured_media_url":"https:\/\/d1gdqjscev06po.cloudfront.net\/wp-content\/uploads\/2022\/04\/logo-python.png","_links":{"self":[{"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/posts\/1757"}],"collection":[{"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/comments?post=1757"}],"version-history":[{"count":5,"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/posts\/1757\/revisions"}],"predecessor-version":[{"id":1766,"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/posts\/1757\/revisions\/1766"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/media\/1761"}],"wp:attachment":[{"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/media?parent=1757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/categories?post=1757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/tags?post=1757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}