Anaconda Prompt Stuck/Closing after Keras installation












5















So I recently downloaded keras through the anaconda prompt (I've downloaded other packages successfully). It actually worked, as I was able to import keras in Jupyter Notebook. However, now I get the following issue when I open the Anaconda Prompt:



C:Users[User Name]>python C:Users[User Name]Anaconda3etckerasload_config.py  1>temp.txt
python: can't open file 'C:Users[User]': [Errno 2] No such file or directory

C:Users[User Name]>set /p KERAS_BACKEND= 0<temp.txt

C:Users[User Name]>del temp.txt

C:Users[User Name]>python -c "import keras" 1>nul 2>&1


Things to Note:




  • At first, I simply cannot type or enter anything into the window.

  • After closing and reopening it, the same message opens up, but is followed by a bunch of text I can't read because the window immediately closes afterward.

  • In the error message provided, the third line has [User] instead of user. That is because my users folder name on my computer is FirstName LastName. There is a space which I'm wondering might be the issue.

  • I don't want to uninstall anaconda, as I have a project due in a few days and don't want any installation/loss of data issues.


So, is my folder name having a space the root of the issue? If it is, how do I change it without messing up my computer? If it isn't, do you guys have any ideas of what is the solution to this? Thank you so much, I have two projects due in just a few days :(










share|improve this question

























  • See this: stackoverflow.com/a/54327432/5929443

    – Vishesh Shrivastav
    Jan 23 at 12:46
















5















So I recently downloaded keras through the anaconda prompt (I've downloaded other packages successfully). It actually worked, as I was able to import keras in Jupyter Notebook. However, now I get the following issue when I open the Anaconda Prompt:



C:Users[User Name]>python C:Users[User Name]Anaconda3etckerasload_config.py  1>temp.txt
python: can't open file 'C:Users[User]': [Errno 2] No such file or directory

C:Users[User Name]>set /p KERAS_BACKEND= 0<temp.txt

C:Users[User Name]>del temp.txt

C:Users[User Name]>python -c "import keras" 1>nul 2>&1


Things to Note:




  • At first, I simply cannot type or enter anything into the window.

  • After closing and reopening it, the same message opens up, but is followed by a bunch of text I can't read because the window immediately closes afterward.

  • In the error message provided, the third line has [User] instead of user. That is because my users folder name on my computer is FirstName LastName. There is a space which I'm wondering might be the issue.

  • I don't want to uninstall anaconda, as I have a project due in a few days and don't want any installation/loss of data issues.


So, is my folder name having a space the root of the issue? If it is, how do I change it without messing up my computer? If it isn't, do you guys have any ideas of what is the solution to this? Thank you so much, I have two projects due in just a few days :(










share|improve this question

























  • See this: stackoverflow.com/a/54327432/5929443

    – Vishesh Shrivastav
    Jan 23 at 12:46














5












5








5


3






So I recently downloaded keras through the anaconda prompt (I've downloaded other packages successfully). It actually worked, as I was able to import keras in Jupyter Notebook. However, now I get the following issue when I open the Anaconda Prompt:



C:Users[User Name]>python C:Users[User Name]Anaconda3etckerasload_config.py  1>temp.txt
python: can't open file 'C:Users[User]': [Errno 2] No such file or directory

C:Users[User Name]>set /p KERAS_BACKEND= 0<temp.txt

C:Users[User Name]>del temp.txt

C:Users[User Name]>python -c "import keras" 1>nul 2>&1


Things to Note:




  • At first, I simply cannot type or enter anything into the window.

  • After closing and reopening it, the same message opens up, but is followed by a bunch of text I can't read because the window immediately closes afterward.

  • In the error message provided, the third line has [User] instead of user. That is because my users folder name on my computer is FirstName LastName. There is a space which I'm wondering might be the issue.

  • I don't want to uninstall anaconda, as I have a project due in a few days and don't want any installation/loss of data issues.


So, is my folder name having a space the root of the issue? If it is, how do I change it without messing up my computer? If it isn't, do you guys have any ideas of what is the solution to this? Thank you so much, I have two projects due in just a few days :(










share|improve this question
















So I recently downloaded keras through the anaconda prompt (I've downloaded other packages successfully). It actually worked, as I was able to import keras in Jupyter Notebook. However, now I get the following issue when I open the Anaconda Prompt:



C:Users[User Name]>python C:Users[User Name]Anaconda3etckerasload_config.py  1>temp.txt
python: can't open file 'C:Users[User]': [Errno 2] No such file or directory

C:Users[User Name]>set /p KERAS_BACKEND= 0<temp.txt

C:Users[User Name]>del temp.txt

C:Users[User Name]>python -c "import keras" 1>nul 2>&1


Things to Note:




  • At first, I simply cannot type or enter anything into the window.

  • After closing and reopening it, the same message opens up, but is followed by a bunch of text I can't read because the window immediately closes afterward.

  • In the error message provided, the third line has [User] instead of user. That is because my users folder name on my computer is FirstName LastName. There is a space which I'm wondering might be the issue.

  • I don't want to uninstall anaconda, as I have a project due in a few days and don't want any installation/loss of data issues.


So, is my folder name having a space the root of the issue? If it is, how do I change it without messing up my computer? If it isn't, do you guys have any ideas of what is the solution to this? Thank you so much, I have two projects due in just a few days :(







python windows cmd keras anaconda






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 26 '18 at 20:04







Anthony G.

















asked Nov 26 '18 at 19:52









Anthony G.Anthony G.

312




312













  • See this: stackoverflow.com/a/54327432/5929443

    – Vishesh Shrivastav
    Jan 23 at 12:46



















  • See this: stackoverflow.com/a/54327432/5929443

    – Vishesh Shrivastav
    Jan 23 at 12:46

















See this: stackoverflow.com/a/54327432/5929443

– Vishesh Shrivastav
Jan 23 at 12:46





See this: stackoverflow.com/a/54327432/5929443

– Vishesh Shrivastav
Jan 23 at 12:46












2 Answers
2






active

oldest

votes


















0














Use quotes. This is a cmd.exe parsing question.



python.exe "%USERPROFILE%Anaconda3etckerasload_config.py" > temp.txt





share|improve this answer
























  • The error I posted pops up automatically when I open Anaconda Prompt, and cannot be altered.

    – Anthony G.
    Nov 26 '18 at 20:01






  • 1





    @AnthonyG. Fix the script that launches Anaconda then or pass your arguments to Anaconda quoted. Assuming you're just typing anaconda at a cmd prompt: where.exe anaconda and fix that script.

    – TheIncorrigible1
    Nov 26 '18 at 20:03













  • Sorry, but I don't know how to do that haha. Where would I go to fix the script that launches Anaconda, and how would I "fix" it?

    – Anthony G.
    Nov 26 '18 at 20:07






  • 1





    @AnthonyG. First, how are you launching anaconda: clicking a shortcut? If so, right-click it and view the properties, figure out what it's launching.

    – TheIncorrigible1
    Nov 26 '18 at 20:10











  • Yes, the Anaconda Prompt Shortcut. I looked at the properties. It's "Target" is: "%windir%System32cmd.exe" /K ""C:Users[User Name]Anaconda3Scriptsactivate.bat" "C:Users[User Name]Anaconda3""

    – Anthony G.
    Nov 26 '18 at 20:14



















0














After a few days of searching, I found an alternative solution.




  1. Open Anaconda Navigator


  2. Click on Environments tab ( as shown in the picture)enter image description here


  3. Click base(root) (triangle icon) and then click on Open Terminalenter image description here



By using this solution, you'll be able to open Anaconda Prompt window and do whatever you want with Anaconda Prompt.
enter image description here






share|improve this answer
























    protected by Community Jan 15 at 6:12



    Thank you for your interest in this question.
    Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



    Would you like to answer one of these unanswered questions instead?














    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Use quotes. This is a cmd.exe parsing question.



    python.exe "%USERPROFILE%Anaconda3etckerasload_config.py" > temp.txt





    share|improve this answer
























    • The error I posted pops up automatically when I open Anaconda Prompt, and cannot be altered.

      – Anthony G.
      Nov 26 '18 at 20:01






    • 1





      @AnthonyG. Fix the script that launches Anaconda then or pass your arguments to Anaconda quoted. Assuming you're just typing anaconda at a cmd prompt: where.exe anaconda and fix that script.

      – TheIncorrigible1
      Nov 26 '18 at 20:03













    • Sorry, but I don't know how to do that haha. Where would I go to fix the script that launches Anaconda, and how would I "fix" it?

      – Anthony G.
      Nov 26 '18 at 20:07






    • 1





      @AnthonyG. First, how are you launching anaconda: clicking a shortcut? If so, right-click it and view the properties, figure out what it's launching.

      – TheIncorrigible1
      Nov 26 '18 at 20:10











    • Yes, the Anaconda Prompt Shortcut. I looked at the properties. It's "Target" is: "%windir%System32cmd.exe" /K ""C:Users[User Name]Anaconda3Scriptsactivate.bat" "C:Users[User Name]Anaconda3""

      – Anthony G.
      Nov 26 '18 at 20:14
















    0














    Use quotes. This is a cmd.exe parsing question.



    python.exe "%USERPROFILE%Anaconda3etckerasload_config.py" > temp.txt





    share|improve this answer
























    • The error I posted pops up automatically when I open Anaconda Prompt, and cannot be altered.

      – Anthony G.
      Nov 26 '18 at 20:01






    • 1





      @AnthonyG. Fix the script that launches Anaconda then or pass your arguments to Anaconda quoted. Assuming you're just typing anaconda at a cmd prompt: where.exe anaconda and fix that script.

      – TheIncorrigible1
      Nov 26 '18 at 20:03













    • Sorry, but I don't know how to do that haha. Where would I go to fix the script that launches Anaconda, and how would I "fix" it?

      – Anthony G.
      Nov 26 '18 at 20:07






    • 1





      @AnthonyG. First, how are you launching anaconda: clicking a shortcut? If so, right-click it and view the properties, figure out what it's launching.

      – TheIncorrigible1
      Nov 26 '18 at 20:10











    • Yes, the Anaconda Prompt Shortcut. I looked at the properties. It's "Target" is: "%windir%System32cmd.exe" /K ""C:Users[User Name]Anaconda3Scriptsactivate.bat" "C:Users[User Name]Anaconda3""

      – Anthony G.
      Nov 26 '18 at 20:14














    0












    0








    0







    Use quotes. This is a cmd.exe parsing question.



    python.exe "%USERPROFILE%Anaconda3etckerasload_config.py" > temp.txt





    share|improve this answer













    Use quotes. This is a cmd.exe parsing question.



    python.exe "%USERPROFILE%Anaconda3etckerasload_config.py" > temp.txt






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Nov 26 '18 at 19:55









    TheIncorrigible1TheIncorrigible1

    9,77431434




    9,77431434













    • The error I posted pops up automatically when I open Anaconda Prompt, and cannot be altered.

      – Anthony G.
      Nov 26 '18 at 20:01






    • 1





      @AnthonyG. Fix the script that launches Anaconda then or pass your arguments to Anaconda quoted. Assuming you're just typing anaconda at a cmd prompt: where.exe anaconda and fix that script.

      – TheIncorrigible1
      Nov 26 '18 at 20:03













    • Sorry, but I don't know how to do that haha. Where would I go to fix the script that launches Anaconda, and how would I "fix" it?

      – Anthony G.
      Nov 26 '18 at 20:07






    • 1





      @AnthonyG. First, how are you launching anaconda: clicking a shortcut? If so, right-click it and view the properties, figure out what it's launching.

      – TheIncorrigible1
      Nov 26 '18 at 20:10











    • Yes, the Anaconda Prompt Shortcut. I looked at the properties. It's "Target" is: "%windir%System32cmd.exe" /K ""C:Users[User Name]Anaconda3Scriptsactivate.bat" "C:Users[User Name]Anaconda3""

      – Anthony G.
      Nov 26 '18 at 20:14



















    • The error I posted pops up automatically when I open Anaconda Prompt, and cannot be altered.

      – Anthony G.
      Nov 26 '18 at 20:01






    • 1





      @AnthonyG. Fix the script that launches Anaconda then or pass your arguments to Anaconda quoted. Assuming you're just typing anaconda at a cmd prompt: where.exe anaconda and fix that script.

      – TheIncorrigible1
      Nov 26 '18 at 20:03













    • Sorry, but I don't know how to do that haha. Where would I go to fix the script that launches Anaconda, and how would I "fix" it?

      – Anthony G.
      Nov 26 '18 at 20:07






    • 1





      @AnthonyG. First, how are you launching anaconda: clicking a shortcut? If so, right-click it and view the properties, figure out what it's launching.

      – TheIncorrigible1
      Nov 26 '18 at 20:10











    • Yes, the Anaconda Prompt Shortcut. I looked at the properties. It's "Target" is: "%windir%System32cmd.exe" /K ""C:Users[User Name]Anaconda3Scriptsactivate.bat" "C:Users[User Name]Anaconda3""

      – Anthony G.
      Nov 26 '18 at 20:14

















    The error I posted pops up automatically when I open Anaconda Prompt, and cannot be altered.

    – Anthony G.
    Nov 26 '18 at 20:01





    The error I posted pops up automatically when I open Anaconda Prompt, and cannot be altered.

    – Anthony G.
    Nov 26 '18 at 20:01




    1




    1





    @AnthonyG. Fix the script that launches Anaconda then or pass your arguments to Anaconda quoted. Assuming you're just typing anaconda at a cmd prompt: where.exe anaconda and fix that script.

    – TheIncorrigible1
    Nov 26 '18 at 20:03







    @AnthonyG. Fix the script that launches Anaconda then or pass your arguments to Anaconda quoted. Assuming you're just typing anaconda at a cmd prompt: where.exe anaconda and fix that script.

    – TheIncorrigible1
    Nov 26 '18 at 20:03















    Sorry, but I don't know how to do that haha. Where would I go to fix the script that launches Anaconda, and how would I "fix" it?

    – Anthony G.
    Nov 26 '18 at 20:07





    Sorry, but I don't know how to do that haha. Where would I go to fix the script that launches Anaconda, and how would I "fix" it?

    – Anthony G.
    Nov 26 '18 at 20:07




    1




    1





    @AnthonyG. First, how are you launching anaconda: clicking a shortcut? If so, right-click it and view the properties, figure out what it's launching.

    – TheIncorrigible1
    Nov 26 '18 at 20:10





    @AnthonyG. First, how are you launching anaconda: clicking a shortcut? If so, right-click it and view the properties, figure out what it's launching.

    – TheIncorrigible1
    Nov 26 '18 at 20:10













    Yes, the Anaconda Prompt Shortcut. I looked at the properties. It's "Target" is: "%windir%System32cmd.exe" /K ""C:Users[User Name]Anaconda3Scriptsactivate.bat" "C:Users[User Name]Anaconda3""

    – Anthony G.
    Nov 26 '18 at 20:14





    Yes, the Anaconda Prompt Shortcut. I looked at the properties. It's "Target" is: "%windir%System32cmd.exe" /K ""C:Users[User Name]Anaconda3Scriptsactivate.bat" "C:Users[User Name]Anaconda3""

    – Anthony G.
    Nov 26 '18 at 20:14













    0














    After a few days of searching, I found an alternative solution.




    1. Open Anaconda Navigator


    2. Click on Environments tab ( as shown in the picture)enter image description here


    3. Click base(root) (triangle icon) and then click on Open Terminalenter image description here



    By using this solution, you'll be able to open Anaconda Prompt window and do whatever you want with Anaconda Prompt.
    enter image description here






    share|improve this answer






























      0














      After a few days of searching, I found an alternative solution.




      1. Open Anaconda Navigator


      2. Click on Environments tab ( as shown in the picture)enter image description here


      3. Click base(root) (triangle icon) and then click on Open Terminalenter image description here



      By using this solution, you'll be able to open Anaconda Prompt window and do whatever you want with Anaconda Prompt.
      enter image description here






      share|improve this answer




























        0












        0








        0







        After a few days of searching, I found an alternative solution.




        1. Open Anaconda Navigator


        2. Click on Environments tab ( as shown in the picture)enter image description here


        3. Click base(root) (triangle icon) and then click on Open Terminalenter image description here



        By using this solution, you'll be able to open Anaconda Prompt window and do whatever you want with Anaconda Prompt.
        enter image description here






        share|improve this answer















        After a few days of searching, I found an alternative solution.




        1. Open Anaconda Navigator


        2. Click on Environments tab ( as shown in the picture)enter image description here


        3. Click base(root) (triangle icon) and then click on Open Terminalenter image description here



        By using this solution, you'll be able to open Anaconda Prompt window and do whatever you want with Anaconda Prompt.
        enter image description here







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 17 at 14:20

























        answered Jan 17 at 13:42









        MuserMuser

        11611




        11611

















            protected by Community Jan 15 at 6:12



            Thank you for your interest in this question.
            Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



            Would you like to answer one of these unanswered questions instead?



            Popular posts from this blog

            Futebolista

            Lallio

            Jornalista