{"id":14937,"date":"2024-08-18T12:09:04","date_gmt":"2024-08-18T10:09:04","guid":{"rendered":"https:\/\/www.beseit.net\/?p=14937"},"modified":"2024-08-22T11:20:26","modified_gmt":"2024-08-22T09:20:26","slug":"python","status":"publish","type":"post","link":"http:\/\/www.beseit.net\/?p=14937","title":{"rendered":"PYTHON a Windows 11 i synology"},"content":{"rendered":"\n<p>I found the location of Apache 2.4 conf file (\/var\/packages\/Apache2.4\/target\/usr\/local\/etc\/apache24\/conf\/httpd24.conf).<\/p>\n\n\n\n<p class=\"has-medium-font-size\">Ha funcionat a la primera fen la instal\u00b7laci\u00f3 des de <strong>Microsoft Store<\/strong> <\/p>\n\n\n\n<p class=\"has-medium-font-size\">No oblidar de comprobar que s&#8217;ha instal\u00b7lat: cmd: python &#8211;version<\/p>\n\n\n\n<p class=\"has-medium-font-size\">Microsoft Windows [Versi\u00f3n 10.0.22631.4037]<br>(c) Microsoft Corporation. Todos los derechos reservados.<\/p>\n\n\n\n<p class=\"has-medium-font-size\">C:\\Users\\urqte&gt;python &#8211;version<br>Python 3.12.5<\/p>\n\n\n\n<p class=\"has-medium-font-size\">C:\\Users\\urqte&gt;python<br>Python 3.12.5 (tags\/v3.12.5:ff3bc82, Aug 6 2024, 20:45:27) [MSC v.1940 64 bit (AMD64)] on win32<br>Type &#8220;help&#8221;, &#8220;copyright&#8221;, &#8220;credits&#8221; or &#8220;license&#8221; for more information.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"has-medium-font-size\">print(&#8220;Hola, m\u00f3n!&#8221;)<br>Hola, m\u00f3n!<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"910\" height=\"243\" src=\"https:\/\/www.beseit.net\/wp-content\/uploads\/2024\/08\/imatge-7.png\" alt=\"\" class=\"wp-image-14956\" srcset=\"http:\/\/www.beseit.net\/wp-content\/uploads\/2024\/08\/imatge-7.png 910w, http:\/\/www.beseit.net\/wp-content\/uploads\/2024\/08\/imatge-7-300x80.png 300w, http:\/\/www.beseit.net\/wp-content\/uploads\/2024\/08\/imatge-7-768x205.png 768w, http:\/\/www.beseit.net\/wp-content\/uploads\/2024\/08\/imatge-7-500x134.png 500w\" sizes=\"auto, (max-width: 910px) 100vw, 910px\" \/><\/figure>\n<\/blockquote>\n<\/blockquote>\n<\/blockquote>\n\n\n\n<p class=\"has-medium-font-size\">La resposta a si \u00e9s millor <strong>Sublime Text<\/strong> o <strong>PyCharm<\/strong> com a eina per treballar amb Python dep\u00e8n de les teves necessitats espec\u00edfiques, prefer\u00e8ncies personals i el tipus de projectes amb qu\u00e8 treballes. Aqu\u00ed tens una comparaci\u00f3 que t&#8217;ajudar\u00e0 a decidir:<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-medium-font-size\"><strong>Sublime Text<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-medium-font-size\"><strong>Lleuger i r\u00e0pid<\/strong>: Sublime Text \u00e9s molt lleuger i r\u00e0pid. Es carrega r\u00e0pidament i no consumeix molts recursos, la qual cosa el fa ideal per a m\u00e0quines amb especificacions baixes o si necessites un editor r\u00e0pid.<\/li>\n\n\n\n<li class=\"has-medium-font-size\"><strong>Altament personalitzable<\/strong>: Disposa de nombrosos plugins i paquets que pots instal\u00b7lar per adaptar-lo a les teves necessitats. Per a Python, pots afegir suport per a la sintaxi, l&#8217;execuci\u00f3 de scripts, depuraci\u00f3 b\u00e0sica, etc., per\u00f2 has de configurar manualment aquestes eines.<\/li>\n\n\n\n<li class=\"has-medium-font-size\"><strong>Editor de text pur<\/strong>: \u00c9s un editor de text molt potent amb funcionalitats b\u00e0siques de codificaci\u00f3, per\u00f2 no \u00e9s un entorn de desenvolupament integrat (IDE). Aix\u00f2 significa que algunes funcionalitats avan\u00e7ades, com la depuraci\u00f3 o l&#8217;exploraci\u00f3 de projectes, poden ser limitades en comparaci\u00f3 amb un IDE complet.<\/li>\n\n\n\n<li class=\"has-medium-font-size\"><strong>Versatilitat<\/strong>: Sublime Text no est\u00e0 centrat en un sol llenguatge de programaci\u00f3, per la qual cosa \u00e9s \u00fatil si treballes amb diversos llenguatges de codificaci\u00f3.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading has-medium-font-size\"><strong>PyCharm<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-medium-font-size\"><strong>IDE complet<\/strong>: PyCharm \u00e9s un entorn de desenvolupament integrat (IDE) espec\u00edfic per a Python, amb totes les funcionalitats necess\u00e0ries per a la programaci\u00f3 avan\u00e7ada. Inclou eines de depuraci\u00f3, proves, integraci\u00f3 amb sistemes de control de versions (com Git), i moltes altres caracter\u00edstiques integrades.<\/li>\n\n\n\n<li class=\"has-medium-font-size\"><strong>Facilitats per a Python<\/strong>: PyCharm ofereix suport excel\u00b7lent per a Python, amb completat de codi avan\u00e7at, refactoritzaci\u00f3 autom\u00e0tica, navegaci\u00f3 r\u00e0pida pel codi, i molt m\u00e9s. Aix\u00f2 el fa molt potent per a projectes grans i complexes en Python.<\/li>\n\n\n\n<li class=\"has-medium-font-size\"><strong>Configuraci\u00f3 m\u00ednima<\/strong>: PyCharm ve preconfigurat per treballar amb Python de manera eficient, sense la necessitat de buscar plugins o configurar l&#8217;entorn manualment.<\/li>\n\n\n\n<li class=\"has-medium-font-size\"><strong>Consells i ajudes<\/strong>: A m\u00e9s de suportar frameworks populars com Django i Flask, PyCharm ofereix guies, consells, i suggeriments que faciliten la programaci\u00f3, especialment \u00fatil per a principiants.<\/li>\n\n\n\n<li class=\"has-medium-font-size\"><strong>M\u00e9s pesat<\/strong>: A difer\u00e8ncia de Sublime Text, PyCharm \u00e9s m\u00e9s pesat i pot consumir m\u00e9s recursos, per la qual cosa podria no ser la millor opci\u00f3 en m\u00e0quines amb menys pot\u00e8ncia.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading has-medium-font-size\"><strong>Conclusi\u00f3<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-medium-font-size\">Si prefereixes un <strong>editor de text lleuger i r\u00e0pid<\/strong>, que pots personalitzar segons les teves necessitats, i est\u00e0s c\u00f2mode configurant el teu entorn de desenvolupament, <strong>Sublime Text<\/strong> pot ser l&#8217;opci\u00f3 adequada.<\/li>\n\n\n\n<li class=\"has-medium-font-size\">Si busques un <strong>IDE complet<\/strong> amb totes les eines necess\u00e0ries per al desenvolupament avan\u00e7at en Python, i valores tenir-ho tot integrat en una sola eina, <strong>PyCharm<\/strong> \u00e9s la millor elecci\u00f3.<\/li>\n<\/ul>\n\n\n\n<p class=\"has-medium-font-size\">Si est\u00e0s treballant en projectes Python complexos o a gran escala, PyCharm probablement t&#8217;oferir\u00e0 una millor experi\u00e8ncia. Per\u00f2 si prefereixes una eina m\u00e9s senzilla i r\u00e0pida, Sublime Text \u00e9s una opci\u00f3 excel\u00b7lent.<\/p>\n\n\n\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"374\" height=\"56\" src=\"https:\/\/www.beseit.net\/wp-content\/uploads\/2024\/08\/imatge-6.png\" alt=\"\" class=\"wp-image-14953\" srcset=\"http:\/\/www.beseit.net\/wp-content\/uploads\/2024\/08\/imatge-6.png 374w, http:\/\/www.beseit.net\/wp-content\/uploads\/2024\/08\/imatge-6-300x45.png 300w\" sizes=\"auto, (max-width: 374px) 100vw, 374px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">Es pot executar des del terminal de Synology  habilitant el servei SSH i accedint des del Windows 11 amb <strong><em>puTTY<\/em><\/strong> amb la <mark style=\"background-color:rgba(0, 0, 0, 0);color:#f30808\" class=\"has-inline-color\">comanda python3<\/mark> hola-mon.py<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"575\" height=\"83\" src=\"https:\/\/www.beseit.net\/wp-content\/uploads\/2024\/08\/imatge-4.png\" alt=\"\" class=\"wp-image-14946\" srcset=\"http:\/\/www.beseit.net\/wp-content\/uploads\/2024\/08\/imatge-4.png 575w, http:\/\/www.beseit.net\/wp-content\/uploads\/2024\/08\/imatge-4-300x43.png 300w, http:\/\/www.beseit.net\/wp-content\/uploads\/2024\/08\/imatge-4-500x72.png 500w\" sizes=\"auto, (max-width: 575px) 100vw, 575px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">Windows Subsystem for Linux (WSL):<br>WSL et permet executar un entorn Linux directament dins de Windows, incloent Bash.<br>Per accedir-hi:<br>Assegura&#8217;t que tens WSL instal\u00b7lat. Si no, pots instal\u00b7lar-lo seguint les instruccions de <a href=\"https:\/\/learn.microsoft.com\/en-us\/windows\/wsl\/install\">Microsoft<\/a>.<br>Despr\u00e9s d&#8217;instal\u00b7lar WSL, obre el terminal de WSL escrivint wsl al men\u00fa d&#8217;inici de Windows o des del CMD.<br>Un cop dins de WSL, estar\u00e0s en un entorn Bash completament funcional.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"286\" src=\"https:\/\/www.beseit.net\/wp-content\/uploads\/2024\/08\/imatge-5-1024x286.png\" alt=\"\" class=\"wp-image-14949\" srcset=\"http:\/\/www.beseit.net\/wp-content\/uploads\/2024\/08\/imatge-5-1024x286.png 1024w, http:\/\/www.beseit.net\/wp-content\/uploads\/2024\/08\/imatge-5-300x84.png 300w, http:\/\/www.beseit.net\/wp-content\/uploads\/2024\/08\/imatge-5-768x214.png 768w, http:\/\/www.beseit.net\/wp-content\/uploads\/2024\/08\/imatge-5-500x140.png 500w, http:\/\/www.beseit.net\/wp-content\/uploads\/2024\/08\/imatge-5.png 1114w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\"><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ff1414\" class=\"has-inline-color\">Instalat<\/mark><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Curso de PYTHON desde CERO (Completo)\" width=\"584\" height=\"329\" src=\"https:\/\/www.youtube.com\/embed\/nKPbfIU442g?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"C\u00f3mo Ejecutar Python en Visual Studio Code (2024) | Paso a Paso\" width=\"584\" height=\"329\" src=\"https:\/\/www.youtube.com\/embed\/A2r83nsMyH0?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I found the location of Apache 2.4 conf file (\/var\/packages\/Apache2.4\/target\/usr\/local\/etc\/apache24\/conf\/httpd24.conf). Ha funcionat a la primera fen la instal\u00b7laci\u00f3 des de Microsoft Store No oblidar de comprobar que s&#8217;ha instal\u00b7lat: cmd: python &#8211;version Microsoft Windows [Versi\u00f3n 10.0.22631.4037](c) Microsoft Corporation. Todos los &hellip; <a href=\"http:\/\/www.beseit.net\/?p=14937\">Continua llegint <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":8179,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[70],"tags":[],"class_list":["post-14937","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programacio"],"_links":{"self":[{"href":"http:\/\/www.beseit.net\/index.php?rest_route=\/wp\/v2\/posts\/14937","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.beseit.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.beseit.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.beseit.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.beseit.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14937"}],"version-history":[{"count":13,"href":"http:\/\/www.beseit.net\/index.php?rest_route=\/wp\/v2\/posts\/14937\/revisions"}],"predecessor-version":[{"id":14972,"href":"http:\/\/www.beseit.net\/index.php?rest_route=\/wp\/v2\/posts\/14937\/revisions\/14972"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.beseit.net\/index.php?rest_route=\/wp\/v2\/media\/8179"}],"wp:attachment":[{"href":"http:\/\/www.beseit.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14937"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.beseit.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14937"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.beseit.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}