{"id":3221,"date":"2017-09-28T14:08:40","date_gmt":"2017-09-28T14:08:40","guid":{"rendered":"http:\/\/joapen.com\/blog\/?p=3221"},"modified":"2017-09-28T14:09:42","modified_gmt":"2017-09-28T14:09:42","slug":"emacs-how-to-install-it","status":"publish","type":"post","link":"http:\/\/joapen.com\/blog\/2017\/09\/28\/emacs-how-to-install-it\/","title":{"rendered":"EMACS, how to install it for Python purposes"},"content":{"rendered":"<h1>What IDE should I start with?<\/h1>\n<p>I have asked about some different IDEs for Python and this was the short list: EMACS, jupyter, syder and anaconda.<\/p>\n<p>Then, I asked my friend: what is the more convenient for a basic learner as me? EMACS.<a href=\"http:\/\/joapen.com\/blog\/2017\/09\/28\/emacs-how-to-install-it\/emacs-icon\/\" rel=\"attachment wp-att-3226\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-thumbnail wp-image-3226\" src=\"http:\/\/joapen.com\/blog\/wp-content\/uploads\/2017\/09\/emacs-icon-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" srcset=\"http:\/\/joapen.com\/blog\/wp-content\/uploads\/2017\/09\/emacs-icon-150x150.jpg 150w, http:\/\/joapen.com\/blog\/wp-content\/uploads\/2017\/09\/emacs-icon.jpg 250w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a><\/p>\n<p>So this is the one I have <a href=\"http:\/\/ergoemacs.org\/emacs\/which_emacs.html\">installed<\/a>. The basis of how to use EMACS can be read <a href=\"https:\/\/realpython.com\/blog\/python\/emacs-the-best-python-editor\/\">here<\/a>. The guidelines recommends the installation of Elpy so this is the next step I have done.<\/p>\n<h1>Elpy \u2013 Python Development<\/h1>\n<p>Emacs is distributed with a python-mode (python.el), but if we want to have a more sophisticated IDE you can install Elpy (Emacs Lisp Python Environment) package.<\/p>\n<p>Before to install Elpy, you have to install these 2 packages:<\/p>\n<ul>\n<li>Flake8: flymake-python-pyflakes.<\/li>\n<li>Jedi.<\/li>\n<\/ul>\n<p>The document I used to install it is <a href=\"https:\/\/elpy.readthedocs.io\/en\/latest\/introduction.html#installation\">this one<\/a>.<\/p>\n<p>The issue I&#8217;m finding is that the these 2 packages are legacy and they seem to not work properly. I&#8217;m sure that in reality the issue is that I&#8217;m not able to enable them in the right way or to enable python properly. <span style=\"color: #ff0000;\">I&#8217;m stuck here by the moment<\/span>.<\/p>\n<h1>Python extensions<\/h1>\n<p>Some basic notes about the python files extensions:<\/p>\n<div class=\"post-text\">\n<ul>\n<li><code>.py<\/code>: This is normally the input source code that you&#8217;ve written (the basis).<\/li>\n<li><code>.pyc<\/code>: This is the compiled bytecode. If you import a module, python will build a <code>*.pyc<\/code> file that contains the bytecode to make importing it again later easier (and faster).<\/li>\n<li><code>.pyo<\/code>: This is a <code>*.pyc<\/code> file that was created while optimizations (<code>-O<\/code>) was on.<\/li>\n<li><code>.pyd<\/code>: This is basically a windows dll file. <a href=\"http:\/\/docs.python.org\/faq\/windows.html#is-a-pyd-file-the-same-as-a-dll\">http:\/\/docs.python.org\/faq\/windows.html#is-a-pyd-file-the-same-as-a-dll<\/a><\/li>\n<\/ul>\n<h1>EMACS basic commands I have learned today.<\/h1>\n<ul>\n<li>M-x list-packages: list the available packages you have in EMACS<\/li>\n<li>M-x customize-group: enable you to customize a package (in my case: &#8220;package&#8221;. I have added <a href=\"https:\/\/melpa.org\/#\/getting-started\">Melpa<\/a> packages to the list so these packages can be installed.<\/li>\n<li>M-x package-install: to perform the installation of a package.<\/li>\n<\/ul>\n<p>This video shows you how to install a package:\u00a0<a href=\"https:\/\/www.youtube.com\/watch?v=Cf6tRBPbWKs\">.Emacs #3 &#8211; Installing Packages and Extensions<\/a>. The series of videos are useful for new users as me.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>What IDE should I start with? I have asked about some different IDEs for Python and this was the short list: EMACS, jupyter, syder and anaconda. Then, I asked my friend: what is the more convenient for a basic learner as me? EMACS. So this is the one I have installed. The basis of how &#8230; <a title=\"EMACS, how to install it for Python purposes\" class=\"read-more\" href=\"http:\/\/joapen.com\/blog\/2017\/09\/28\/emacs-how-to-install-it\/\" aria-label=\"Read more about EMACS, how to install it for Python purposes\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[104],"tags":[110],"class_list":["post-3221","post","type-post","status-publish","format-standard","hentry","category-python","tag-python-emacs-melpa-configuration"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>EMACS, how to install it for Python purposes -<\/title>\n<meta name=\"description\" content=\"What IDE should I start with? I have asked about some different IDEs for Python and this was the short list: EMACS, jupyter, syder and anaconda. Then, I - joapen projects\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/joapen.com\/blog\/2017\/09\/28\/emacs-how-to-install-it\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"EMACS, how to install it for Python purposes -\" \/>\n<meta property=\"og:description\" content=\"What IDE should I start with? I have asked about some different IDEs for Python and this was the short list: EMACS, jupyter, syder and anaconda. Then, I - joapen projects\" \/>\n<meta property=\"og:url\" content=\"http:\/\/joapen.com\/blog\/2017\/09\/28\/emacs-how-to-install-it\/\" \/>\n<meta property=\"og:site_name\" content=\"joapen projects\" \/>\n<meta property=\"article:published_time\" content=\"2017-09-28T14:08:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-09-28T14:09:42+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/joapen.com\/blog\/wp-content\/uploads\/2017\/09\/emacs-icon-150x150.jpg\" \/>\n<meta name=\"author\" content=\"joapen\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"joapen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2017\\\/09\\\/28\\\/emacs-how-to-install-it\\\/#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2017\\\/09\\\/28\\\/emacs-how-to-install-it\\\/\"},\"author\":{\"name\":\"joapen\",\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/#\\\/schema\\\/person\\\/23919df2312175fe9c4609203595b217\"},\"headline\":\"EMACS, how to install it for Python purposes\",\"datePublished\":\"2017-09-28T14:08:40+00:00\",\"dateModified\":\"2017-09-28T14:09:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2017\\\/09\\\/28\\\/emacs-how-to-install-it\\\/\"},\"wordCount\":346,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/#\\\/schema\\\/person\\\/23919df2312175fe9c4609203595b217\"},\"image\":{\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2017\\\/09\\\/28\\\/emacs-how-to-install-it\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/emacs-icon-150x150.jpg\",\"keywords\":[\"python emacs melpa configuration\"],\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\\\/\\\/joapen.com\\\/blog\\\/2017\\\/09\\\/28\\\/emacs-how-to-install-it\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2017\\\/09\\\/28\\\/emacs-how-to-install-it\\\/\",\"url\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2017\\\/09\\\/28\\\/emacs-how-to-install-it\\\/\",\"name\":\"EMACS, how to install it for Python purposes -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2017\\\/09\\\/28\\\/emacs-how-to-install-it\\\/#primaryimage\"},\"image\":{\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2017\\\/09\\\/28\\\/emacs-how-to-install-it\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/emacs-icon-150x150.jpg\",\"datePublished\":\"2017-09-28T14:08:40+00:00\",\"dateModified\":\"2017-09-28T14:09:42+00:00\",\"description\":\"What IDE should I start with? I have asked about some different IDEs for Python and this was the short list: EMACS, jupyter, syder and anaconda. Then, I - joapen projects\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2017\\\/09\\\/28\\\/emacs-how-to-install-it\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/joapen.com\\\/blog\\\/2017\\\/09\\\/28\\\/emacs-how-to-install-it\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2017\\\/09\\\/28\\\/emacs-how-to-install-it\\\/#primaryimage\",\"url\":\"http:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/emacs-icon.jpg\",\"contentUrl\":\"http:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/emacs-icon.jpg\",\"width\":250,\"height\":250},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/2017\\\/09\\\/28\\\/emacs-how-to-install-it\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/joapen.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"EMACS, how to install it for Python purposes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/joapen.com\\\/blog\\\/\",\"name\":\"joapen projects\",\"description\":\"Just a place to write\",\"publisher\":{\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/#\\\/schema\\\/person\\\/23919df2312175fe9c4609203595b217\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/joapen.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/#\\\/schema\\\/person\\\/23919df2312175fe9c4609203595b217\",\"name\":\"joapen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/joapen-mini.jpeg\",\"url\":\"https:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/joapen-mini.jpeg\",\"contentUrl\":\"https:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/joapen-mini.jpeg\",\"width\":400,\"height\":400,\"caption\":\"joapen\"},\"logo\":{\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/joapen-mini.jpeg\"},\"sameAs\":[\"http:\\\/\\\/www.joapen.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"EMACS, how to install it for Python purposes -","description":"What IDE should I start with? I have asked about some different IDEs for Python and this was the short list: EMACS, jupyter, syder and anaconda. Then, I - joapen projects","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":"http:\/\/joapen.com\/blog\/2017\/09\/28\/emacs-how-to-install-it\/","og_locale":"en_US","og_type":"article","og_title":"EMACS, how to install it for Python purposes -","og_description":"What IDE should I start with? I have asked about some different IDEs for Python and this was the short list: EMACS, jupyter, syder and anaconda. Then, I - joapen projects","og_url":"http:\/\/joapen.com\/blog\/2017\/09\/28\/emacs-how-to-install-it\/","og_site_name":"joapen projects","article_published_time":"2017-09-28T14:08:40+00:00","article_modified_time":"2017-09-28T14:09:42+00:00","og_image":[{"url":"http:\/\/joapen.com\/blog\/wp-content\/uploads\/2017\/09\/emacs-icon-150x150.jpg","type":"","width":"","height":""}],"author":"joapen","twitter_misc":{"Written by":"joapen","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/joapen.com\/blog\/2017\/09\/28\/emacs-how-to-install-it\/#article","isPartOf":{"@id":"http:\/\/joapen.com\/blog\/2017\/09\/28\/emacs-how-to-install-it\/"},"author":{"name":"joapen","@id":"https:\/\/joapen.com\/blog\/#\/schema\/person\/23919df2312175fe9c4609203595b217"},"headline":"EMACS, how to install it for Python purposes","datePublished":"2017-09-28T14:08:40+00:00","dateModified":"2017-09-28T14:09:42+00:00","mainEntityOfPage":{"@id":"http:\/\/joapen.com\/blog\/2017\/09\/28\/emacs-how-to-install-it\/"},"wordCount":346,"commentCount":0,"publisher":{"@id":"https:\/\/joapen.com\/blog\/#\/schema\/person\/23919df2312175fe9c4609203595b217"},"image":{"@id":"http:\/\/joapen.com\/blog\/2017\/09\/28\/emacs-how-to-install-it\/#primaryimage"},"thumbnailUrl":"http:\/\/joapen.com\/blog\/wp-content\/uploads\/2017\/09\/emacs-icon-150x150.jpg","keywords":["python emacs melpa configuration"],"articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/joapen.com\/blog\/2017\/09\/28\/emacs-how-to-install-it\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/joapen.com\/blog\/2017\/09\/28\/emacs-how-to-install-it\/","url":"http:\/\/joapen.com\/blog\/2017\/09\/28\/emacs-how-to-install-it\/","name":"EMACS, how to install it for Python purposes -","isPartOf":{"@id":"https:\/\/joapen.com\/blog\/#website"},"primaryImageOfPage":{"@id":"http:\/\/joapen.com\/blog\/2017\/09\/28\/emacs-how-to-install-it\/#primaryimage"},"image":{"@id":"http:\/\/joapen.com\/blog\/2017\/09\/28\/emacs-how-to-install-it\/#primaryimage"},"thumbnailUrl":"http:\/\/joapen.com\/blog\/wp-content\/uploads\/2017\/09\/emacs-icon-150x150.jpg","datePublished":"2017-09-28T14:08:40+00:00","dateModified":"2017-09-28T14:09:42+00:00","description":"What IDE should I start with? I have asked about some different IDEs for Python and this was the short list: EMACS, jupyter, syder and anaconda. Then, I - joapen projects","breadcrumb":{"@id":"http:\/\/joapen.com\/blog\/2017\/09\/28\/emacs-how-to-install-it\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/joapen.com\/blog\/2017\/09\/28\/emacs-how-to-install-it\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/joapen.com\/blog\/2017\/09\/28\/emacs-how-to-install-it\/#primaryimage","url":"http:\/\/joapen.com\/blog\/wp-content\/uploads\/2017\/09\/emacs-icon.jpg","contentUrl":"http:\/\/joapen.com\/blog\/wp-content\/uploads\/2017\/09\/emacs-icon.jpg","width":250,"height":250},{"@type":"BreadcrumbList","@id":"http:\/\/joapen.com\/blog\/2017\/09\/28\/emacs-how-to-install-it\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/joapen.com\/blog\/"},{"@type":"ListItem","position":2,"name":"EMACS, how to install it for Python purposes"}]},{"@type":"WebSite","@id":"https:\/\/joapen.com\/blog\/#website","url":"https:\/\/joapen.com\/blog\/","name":"joapen projects","description":"Just a place to write","publisher":{"@id":"https:\/\/joapen.com\/blog\/#\/schema\/person\/23919df2312175fe9c4609203595b217"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/joapen.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/joapen.com\/blog\/#\/schema\/person\/23919df2312175fe9c4609203595b217","name":"joapen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/04\/joapen-mini.jpeg","url":"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/04\/joapen-mini.jpeg","contentUrl":"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/04\/joapen-mini.jpeg","width":400,"height":400,"caption":"joapen"},"logo":{"@id":"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/04\/joapen-mini.jpeg"},"sameAs":["http:\/\/www.joapen.com"]}]}},"_links":{"self":[{"href":"http:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/posts\/3221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/comments?post=3221"}],"version-history":[{"count":6,"href":"http:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/posts\/3221\/revisions"}],"predecessor-version":[{"id":3229,"href":"http:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/posts\/3221\/revisions\/3229"}],"wp:attachment":[{"href":"http:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/media?parent=3221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/categories?post=3221"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/tags?post=3221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}