{"id":23609,"date":"2021-10-19T08:06:57","date_gmt":"2021-10-18T23:06:57","guid":{"rendered":"https:\/\/www.souichi.club\/?p=23609"},"modified":"2022-03-19T17:21:25","modified_gmt":"2022-03-19T08:21:25","slug":"spyder-not-start","status":"publish","type":"post","link":"https:\/\/www.souichi.club\/en\/python\/spyder-not-start\/","title":{"rendered":"What I tried when Spyder stopped running"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a1447b560a37\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #454e5c;color:#454e5c\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #454e5c;color:#454e5c\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a1447b560a37\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.souichi.club\/en\/python\/spyder-not-start\/#Spyder\" >Spyder<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.souichi.club\/en\/python\/spyder-not-start\/#Environment\" >Environment<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.souichi.club\/en\/python\/spyder-not-start\/#How_to_respond\" >How to respond<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.souichi.club\/en\/python\/spyder-not-start\/#Delete_the_spyderlock_folder\" >Delete the spyder.lock folder.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.souichi.club\/en\/python\/spyder-not-start\/#reset_Command\" >reset Command<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.souichi.club\/en\/python\/spyder-not-start\/#Language_settings\" >Language settings<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.souichi.club\/en\/python\/spyder-not-start\/#update_%E2%80%93all\" >update &#8211;all<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Spyder\"><\/span>Spyder<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Spyder is Pyhton&#8217;s integrated development environment.<\/p>\n\n\n\n<p>There are many development environments for Python, but I have been using it conveniently since it came with Anaconda when I installed it on Windows 10.<\/p>\n\n\n\n<p>The other day, Spyder stopped running for some reason.<\/p>\n\n\n\n<p>When I tried to start it, the splash window appeared, but the Spyder integrated development environment window did not appear.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a class=\"r_image\" href=\"https:\/\/i0.wp.com\/www.souichi.club\/wp-content\/uploads\/spyder-not-start-01.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.souichi.club\/wp-content\/uploads\/spyder-not-start-01.png?resize=375%2C188&#038;ssl=1\" alt=\"Splash window when the Spyder is started.\" class=\"wp-image-23593\" width=\"375\" height=\"188\" srcset=\"https:\/\/i0.wp.com\/www.souichi.club\/wp-content\/uploads\/spyder-not-start-01.png?w=500&amp;ssl=1 500w, https:\/\/i0.wp.com\/www.souichi.club\/wp-content\/uploads\/spyder-not-start-01.png?resize=300%2C150&amp;ssl=1 300w\" sizes=\"auto, (max-width: 375px) 100vw, 375px\" \/><\/a><\/figure>\n\n\n\n<p>The above splash window appears, but beyond that, the integrated development environment does not appear at all.<\/p>\n\n\n\n<p>I tried restarting Windows again, but the situation remained the same.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Environment\"><\/span>Environment<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The environment in which this occurred is as follows.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\">\n<table class=\"r_table01\">\n<tbody>\n<tr>\n<td class=\"r_td30\">\n<p>OS<\/p>\n<\/td>\n<td>\n<p>Windows 10 Home\uff0864 Bit\uff09<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Anacond<\/p>\n<\/td>\n<td>\n<p>conda 4.10.3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Python<\/p>\n<\/td>\n<td>\n<p>&nbsp;3.8.5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Spyder<\/p>\n<\/td>\n<td>\n<p>Ver 5.0.5<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_respond\"><\/span>How to respond<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Delete_the_spyderlock_folder\"><\/span>Delete the spyder.lock folder.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The first thing I tried was to delete the spyder.lock folder.<\/p>\n\n\n\n<p>This folder is automatically created when the Spyder starts up (it used to be a file in previous versions) and is used for exclusivity control.<\/p>\n\n\n\n<p>If this folder is corrupted for some reason, it will be misinterpreted as another Spyder running and prevent it from starting.<\/p>\n\n\n\n<p>The location of the folder varies depending on the environment, but in my case it was in the following location.<\/p>\n\n\n\n<p>If the folder does not exist at the time of starting, it will be created even if the folder is deleted.<\/p>\n\n\n<pre><code class=\"lang-shell\">C:Users\\User Name\\.spyder-py3\\spyder.lock<\/code><\/pre>\n\n\n<p>However, the result remained the same and the Spyder did not start.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"reset_Command\"><\/span>reset Command<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The next thing I tried was the reset command.<\/p>\n\n\n\n<p>As a result, after resetting all the settings with this command, it started up normally.<\/p>\n\n\n\n<p>From the anaconda prompt,<\/p>\n\n\n<pre><code class=\"lang-shell\">spyder --reset<\/code><\/pre>\n\n\n<p>However, this command resets the entire environment, so all open Python scripts, themes and other appearance settings, language settings, etc. are reset.<\/p>\n\n\n\n<p>It was better than not being able to use it at all, so I reset all the settings and it started up normally.<\/p>\n\n\n\n<p>After that, I changed the language setting to Japanese, but the location of the Japanese setting in Spyder 5.0.5 is different from the previous version, so I am writing this article for the record.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Language_settings\"><\/span>Language settings<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>From the Spyder menu, Tools Preferences Application Advanced settings Language:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a class=\"r_image\" href=\"https:\/\/i0.wp.com\/www.souichi.club\/wp-content\/uploads\/spyder-not-start-en-01.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.souichi.club\/wp-content\/uploads\/spyder-not-start-en-01.png?resize=512%2C277&#038;ssl=1\" alt=\"Language settings\" class=\"wp-image-23614\" width=\"512\" height=\"277\" srcset=\"https:\/\/i0.wp.com\/www.souichi.club\/wp-content\/uploads\/spyder-not-start-en-01.png?resize=1024%2C554&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.souichi.club\/wp-content\/uploads\/spyder-not-start-en-01.png?resize=300%2C162&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.souichi.club\/wp-content\/uploads\/spyder-not-start-en-01.png?resize=768%2C415&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.souichi.club\/wp-content\/uploads\/spyder-not-start-en-01.png?w=1052&amp;ssl=1 1052w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"update_%E2%80%93all\"><\/span>update &#8211;all<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>In addition, if the above does not solve the problem, I was going to update all Anaconda packages, but I did not do it this time.<\/p>\n\n\n<pre><code class=\"lang-shell\">conda update --all<\/code><\/pre>\n\n\n<p>To update a specific package only, use the following command<\/p>\n\n\n<pre><code class=\"lang-shell\">conda update Package Name<\/code><\/pre>\n\n\n<p>When I used to update with update -all, I was bewildered by too many changes in the settings, so recently I have been updating in the GUI environment by specifying the package and version from Anaconda Navigator.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a class=\"r_image\" href=\"https:\/\/i0.wp.com\/www.souichi.club\/wp-content\/uploads\/spyder-not-start-03.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"549\" src=\"https:\/\/i0.wp.com\/www.souichi.club\/wp-content\/uploads\/spyder-not-start-03.png?resize=1024%2C549&#038;ssl=1\" alt=\"Anaconda Navigator\" class=\"wp-image-23600\" srcset=\"https:\/\/i0.wp.com\/www.souichi.club\/wp-content\/uploads\/spyder-not-start-03.png?resize=1024%2C549&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.souichi.club\/wp-content\/uploads\/spyder-not-start-03.png?resize=300%2C161&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.souichi.club\/wp-content\/uploads\/spyder-not-start-03.png?resize=768%2C412&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.souichi.club\/wp-content\/uploads\/spyder-not-start-03.png?resize=1536%2C824&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.souichi.club\/wp-content\/uploads\/spyder-not-start-03.png?w=1920&amp;ssl=1 1920w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<p>If you use the above method, you can update only the specified package with the specified version.<\/p>\n\n\n\n<p>This concludes this article.<\/p>\n\n\n<div class=\"postscript_balloon\">Finally.<\/div>\n\n\n<p>I hope this article will be useful to someone somewhere.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I start the Spyder, the splash window appears, but then the Spyder integrated development environment window does not appear.<\/p>\n","protected":false},"author":5,"featured_media":23593,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"en_US","_original_post":"https:\/\/www.souichi.club\/?p=23590","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[191],"tags":[],"class_list":["post-23609","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","en-US"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.souichi.club\/wp-content\/uploads\/spyder-not-start-01.png?fit=500%2C250&ssl=1","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.souichi.club\/wp-json\/wp\/v2\/posts\/23609","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.souichi.club\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.souichi.club\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.souichi.club\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.souichi.club\/wp-json\/wp\/v2\/comments?post=23609"}],"version-history":[{"count":1,"href":"https:\/\/www.souichi.club\/wp-json\/wp\/v2\/posts\/23609\/revisions"}],"predecessor-version":[{"id":24528,"href":"https:\/\/www.souichi.club\/wp-json\/wp\/v2\/posts\/23609\/revisions\/24528"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.souichi.club\/wp-json\/wp\/v2\/media\/23593"}],"wp:attachment":[{"href":"https:\/\/www.souichi.club\/wp-json\/wp\/v2\/media?parent=23609"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.souichi.club\/wp-json\/wp\/v2\/categories?post=23609"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.souichi.club\/wp-json\/wp\/v2\/tags?post=23609"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}