Installing Keras broke Conda virtual environment (Windows 10)












1















I was trying to install Keras on my python 3.7 environment then I noticed that neither tensorflow nor keras supports python 3.7, they support 3.6

Then I created a new virtual environment with python 3.6 using conda/anaconda.

I was able to activate this virtual environment by entering
activate deeplearning in the cmd and then type python to enter python shell.
I installed Keras and its dependencies using conda install -c conda-forge keras , it seemed okay I entered the python shell imported keras and other libraries tinkered around with the libraries, they were working as intended.

I closed down the window to try again if i can open up the virtual environment again manually myself.
Typed activate deeplearning, and then I ran into this problem(
Screenshot
)
I only typed the activate deeplearning part on the cmd screenshot.


The problem here is that I can not enter the virtual environment, I get this commands? on the cmd and then it shuts itself down. I can not enter the virtual environment therefore preventing me from installing new libraries. But I can enter the python shell of this environment from where it is installed.
However there is not a .bat file in the folder so I can not activate the virtual environment from there as well.


I do not know what to do, I would really appreciate it if someone could help, thanks in advance.










share|improve this question

























  • could you explain what is "this problem" ? we have a screenshot with a bunch of commands, but no "problem". Also, change from screenshot to actual text for indexing/other users that might look into the same issue.

    – LoneWanderer
    Nov 26 '18 at 0:21






  • 1





    The problem here is that I can not enter the virtual environment, I get this commands? on the cmd and then it shuts itself down. I can not activate the virtual environment therefore preventing me from installing new libraries. But I can enter the python shell of this environment from where it is installed. However there is not a .bat file in the folder so I can not activate the virtual environment from there as well.

    – Eren Aladağ
    Nov 26 '18 at 0:27













  • Btw the image is still there.

    – LoneWanderer
    Nov 27 '18 at 9:09
















1















I was trying to install Keras on my python 3.7 environment then I noticed that neither tensorflow nor keras supports python 3.7, they support 3.6

Then I created a new virtual environment with python 3.6 using conda/anaconda.

I was able to activate this virtual environment by entering
activate deeplearning in the cmd and then type python to enter python shell.
I installed Keras and its dependencies using conda install -c conda-forge keras , it seemed okay I entered the python shell imported keras and other libraries tinkered around with the libraries, they were working as intended.

I closed down the window to try again if i can open up the virtual environment again manually myself.
Typed activate deeplearning, and then I ran into this problem(
Screenshot
)
I only typed the activate deeplearning part on the cmd screenshot.


The problem here is that I can not enter the virtual environment, I get this commands? on the cmd and then it shuts itself down. I can not enter the virtual environment therefore preventing me from installing new libraries. But I can enter the python shell of this environment from where it is installed.
However there is not a .bat file in the folder so I can not activate the virtual environment from there as well.


I do not know what to do, I would really appreciate it if someone could help, thanks in advance.










share|improve this question

























  • could you explain what is "this problem" ? we have a screenshot with a bunch of commands, but no "problem". Also, change from screenshot to actual text for indexing/other users that might look into the same issue.

    – LoneWanderer
    Nov 26 '18 at 0:21






  • 1





    The problem here is that I can not enter the virtual environment, I get this commands? on the cmd and then it shuts itself down. I can not activate the virtual environment therefore preventing me from installing new libraries. But I can enter the python shell of this environment from where it is installed. However there is not a .bat file in the folder so I can not activate the virtual environment from there as well.

    – Eren Aladağ
    Nov 26 '18 at 0:27













  • Btw the image is still there.

    – LoneWanderer
    Nov 27 '18 at 9:09














1












1








1


0






I was trying to install Keras on my python 3.7 environment then I noticed that neither tensorflow nor keras supports python 3.7, they support 3.6

Then I created a new virtual environment with python 3.6 using conda/anaconda.

I was able to activate this virtual environment by entering
activate deeplearning in the cmd and then type python to enter python shell.
I installed Keras and its dependencies using conda install -c conda-forge keras , it seemed okay I entered the python shell imported keras and other libraries tinkered around with the libraries, they were working as intended.

I closed down the window to try again if i can open up the virtual environment again manually myself.
Typed activate deeplearning, and then I ran into this problem(
Screenshot
)
I only typed the activate deeplearning part on the cmd screenshot.


The problem here is that I can not enter the virtual environment, I get this commands? on the cmd and then it shuts itself down. I can not enter the virtual environment therefore preventing me from installing new libraries. But I can enter the python shell of this environment from where it is installed.
However there is not a .bat file in the folder so I can not activate the virtual environment from there as well.


I do not know what to do, I would really appreciate it if someone could help, thanks in advance.










share|improve this question
















I was trying to install Keras on my python 3.7 environment then I noticed that neither tensorflow nor keras supports python 3.7, they support 3.6

Then I created a new virtual environment with python 3.6 using conda/anaconda.

I was able to activate this virtual environment by entering
activate deeplearning in the cmd and then type python to enter python shell.
I installed Keras and its dependencies using conda install -c conda-forge keras , it seemed okay I entered the python shell imported keras and other libraries tinkered around with the libraries, they were working as intended.

I closed down the window to try again if i can open up the virtual environment again manually myself.
Typed activate deeplearning, and then I ran into this problem(
Screenshot
)
I only typed the activate deeplearning part on the cmd screenshot.


The problem here is that I can not enter the virtual environment, I get this commands? on the cmd and then it shuts itself down. I can not enter the virtual environment therefore preventing me from installing new libraries. But I can enter the python shell of this environment from where it is installed.
However there is not a .bat file in the folder so I can not activate the virtual environment from there as well.


I do not know what to do, I would really appreciate it if someone could help, thanks in advance.







python tensorflow keras anaconda virtualenv






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 26 '18 at 0:26







Eren Aladağ

















asked Nov 26 '18 at 0:18









Eren AladağEren Aladağ

63




63













  • could you explain what is "this problem" ? we have a screenshot with a bunch of commands, but no "problem". Also, change from screenshot to actual text for indexing/other users that might look into the same issue.

    – LoneWanderer
    Nov 26 '18 at 0:21






  • 1





    The problem here is that I can not enter the virtual environment, I get this commands? on the cmd and then it shuts itself down. I can not activate the virtual environment therefore preventing me from installing new libraries. But I can enter the python shell of this environment from where it is installed. However there is not a .bat file in the folder so I can not activate the virtual environment from there as well.

    – Eren Aladağ
    Nov 26 '18 at 0:27













  • Btw the image is still there.

    – LoneWanderer
    Nov 27 '18 at 9:09



















  • could you explain what is "this problem" ? we have a screenshot with a bunch of commands, but no "problem". Also, change from screenshot to actual text for indexing/other users that might look into the same issue.

    – LoneWanderer
    Nov 26 '18 at 0:21






  • 1





    The problem here is that I can not enter the virtual environment, I get this commands? on the cmd and then it shuts itself down. I can not activate the virtual environment therefore preventing me from installing new libraries. But I can enter the python shell of this environment from where it is installed. However there is not a .bat file in the folder so I can not activate the virtual environment from there as well.

    – Eren Aladağ
    Nov 26 '18 at 0:27













  • Btw the image is still there.

    – LoneWanderer
    Nov 27 '18 at 9:09

















could you explain what is "this problem" ? we have a screenshot with a bunch of commands, but no "problem". Also, change from screenshot to actual text for indexing/other users that might look into the same issue.

– LoneWanderer
Nov 26 '18 at 0:21





could you explain what is "this problem" ? we have a screenshot with a bunch of commands, but no "problem". Also, change from screenshot to actual text for indexing/other users that might look into the same issue.

– LoneWanderer
Nov 26 '18 at 0:21




1




1





The problem here is that I can not enter the virtual environment, I get this commands? on the cmd and then it shuts itself down. I can not activate the virtual environment therefore preventing me from installing new libraries. But I can enter the python shell of this environment from where it is installed. However there is not a .bat file in the folder so I can not activate the virtual environment from there as well.

– Eren Aladağ
Nov 26 '18 at 0:27







The problem here is that I can not enter the virtual environment, I get this commands? on the cmd and then it shuts itself down. I can not activate the virtual environment therefore preventing me from installing new libraries. But I can enter the python shell of this environment from where it is installed. However there is not a .bat file in the folder so I can not activate the virtual environment from there as well.

– Eren Aladağ
Nov 26 '18 at 0:27















Btw the image is still there.

– LoneWanderer
Nov 27 '18 at 9:09





Btw the image is still there.

– LoneWanderer
Nov 27 '18 at 9:09












3 Answers
3






active

oldest

votes


















1














It seems that the scripts for activating keras are exiting prematurely. One of the reasons can be that the environment is not set in python 3.6.



Try creating a virtual environment with command:




conda create --name deeplearning python=3.6




And then you can follow instructions from:
http://inmachineswetrust.com/posts/deep-learning-setup/



Note: While installing keras use command:




conda install keras







share|improve this answer


























  • The first environment's python was not python 3.6 but the second ones python is 3.6, still it is not working having the same error(exiting prematurely)

    – Eren Aladağ
    Nov 26 '18 at 12:26













  • Just to confirm - Did you try all of the above steps? >conda create --name deeplearning python=3.6 >activate deeplearning >conda install ipython >conda install jupyter >conda install pandas >conda install scipy >conda install seaborn >conda install scikit-learn >conda install keras I face a similar issue recently, but after doing above steps I was able to install & use keras. You would also require Microsoft Visual C++ 2015 Redistributable (you may also check whether it is installed). If this doesn't work, I guess you will have to debug the scripts.

    – Darshit Vora
    Nov 26 '18 at 16:11






  • 1





    I just have been able to use keras and tensorflow now. Created virtual environment of python 3.6 using anaconda, installed some packages using conda install <package_name> . And then installed tensorflow and keras using pip install tensorflow pip install keras I think conda install tensorflow and conda install keras breaks these 2 packages somehow.

    – Eren Aladağ
    Nov 26 '18 at 17:35





















0














I fixed this on Python 2.7 by removing via Anaconda Navigator the item that goes by the name vs2008_win-32, that fixed my environment.






share|improve this answer































    0














    On my system, the error was caused by another activation script, probably installed at the same time. To confirm that this is the case for you, look into the batch file generated dynamically at startup. To find out its name, change _conda_activate.bat as so:



    ...

    :FIXUP43
    @FOR /F "delims=" %%i IN ('@CALL "%CONDA_EXE%" shell.cmd.exe %*') DO @SET "_TEMP_SCRIPT_PATH=%%i"
    @IF "%_TEMP_SCRIPT_PATH%"=="" @EXIT /B 1
    @IF NOT "%CONDA_PROMPT_MODIFIER%" == "" @CALL SET "PROMPT=%%PROMPT:%CONDA_PROMPT_MODIFIER%=%_empty_not_set_%%%"

    :: Add these lines:
    set _TEMP_SCRIPT_PATH
    pause

    @CALL "%_TEMP_SCRIPT_PATH%"
    ...



    In the temp script comment out the invocation of other scripts
    until you find the culprit. For me it was something to do with vs2015.



    @SET "PYTHONIOENCODING=1252"
    @CALL "C:Usersx030551AppDataLocalContinuumminiconda3etccondaactivate.dkeras_activate.bat"
    :: @CALL "C:Usersx030551AppDataLocalContinuumminiconda3etccondaactivate.dvs2015_compiler_vars.bat"


    Once I had this information, Google pointed me to this issue. The solution to that depends too much on your environment to post here.






    share|improve this answer























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53473336%2finstalling-keras-broke-conda-virtual-environment-windows-10%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      It seems that the scripts for activating keras are exiting prematurely. One of the reasons can be that the environment is not set in python 3.6.



      Try creating a virtual environment with command:




      conda create --name deeplearning python=3.6




      And then you can follow instructions from:
      http://inmachineswetrust.com/posts/deep-learning-setup/



      Note: While installing keras use command:




      conda install keras







      share|improve this answer


























      • The first environment's python was not python 3.6 but the second ones python is 3.6, still it is not working having the same error(exiting prematurely)

        – Eren Aladağ
        Nov 26 '18 at 12:26













      • Just to confirm - Did you try all of the above steps? >conda create --name deeplearning python=3.6 >activate deeplearning >conda install ipython >conda install jupyter >conda install pandas >conda install scipy >conda install seaborn >conda install scikit-learn >conda install keras I face a similar issue recently, but after doing above steps I was able to install & use keras. You would also require Microsoft Visual C++ 2015 Redistributable (you may also check whether it is installed). If this doesn't work, I guess you will have to debug the scripts.

        – Darshit Vora
        Nov 26 '18 at 16:11






      • 1





        I just have been able to use keras and tensorflow now. Created virtual environment of python 3.6 using anaconda, installed some packages using conda install <package_name> . And then installed tensorflow and keras using pip install tensorflow pip install keras I think conda install tensorflow and conda install keras breaks these 2 packages somehow.

        – Eren Aladağ
        Nov 26 '18 at 17:35


















      1














      It seems that the scripts for activating keras are exiting prematurely. One of the reasons can be that the environment is not set in python 3.6.



      Try creating a virtual environment with command:




      conda create --name deeplearning python=3.6




      And then you can follow instructions from:
      http://inmachineswetrust.com/posts/deep-learning-setup/



      Note: While installing keras use command:




      conda install keras







      share|improve this answer


























      • The first environment's python was not python 3.6 but the second ones python is 3.6, still it is not working having the same error(exiting prematurely)

        – Eren Aladağ
        Nov 26 '18 at 12:26













      • Just to confirm - Did you try all of the above steps? >conda create --name deeplearning python=3.6 >activate deeplearning >conda install ipython >conda install jupyter >conda install pandas >conda install scipy >conda install seaborn >conda install scikit-learn >conda install keras I face a similar issue recently, but after doing above steps I was able to install & use keras. You would also require Microsoft Visual C++ 2015 Redistributable (you may also check whether it is installed). If this doesn't work, I guess you will have to debug the scripts.

        – Darshit Vora
        Nov 26 '18 at 16:11






      • 1





        I just have been able to use keras and tensorflow now. Created virtual environment of python 3.6 using anaconda, installed some packages using conda install <package_name> . And then installed tensorflow and keras using pip install tensorflow pip install keras I think conda install tensorflow and conda install keras breaks these 2 packages somehow.

        – Eren Aladağ
        Nov 26 '18 at 17:35
















      1












      1








      1







      It seems that the scripts for activating keras are exiting prematurely. One of the reasons can be that the environment is not set in python 3.6.



      Try creating a virtual environment with command:




      conda create --name deeplearning python=3.6




      And then you can follow instructions from:
      http://inmachineswetrust.com/posts/deep-learning-setup/



      Note: While installing keras use command:




      conda install keras







      share|improve this answer















      It seems that the scripts for activating keras are exiting prematurely. One of the reasons can be that the environment is not set in python 3.6.



      Try creating a virtual environment with command:




      conda create --name deeplearning python=3.6




      And then you can follow instructions from:
      http://inmachineswetrust.com/posts/deep-learning-setup/



      Note: While installing keras use command:




      conda install keras








      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Nov 26 '18 at 5:08

























      answered Nov 26 '18 at 4:48









      Darshit VoraDarshit Vora

      113




      113













      • The first environment's python was not python 3.6 but the second ones python is 3.6, still it is not working having the same error(exiting prematurely)

        – Eren Aladağ
        Nov 26 '18 at 12:26













      • Just to confirm - Did you try all of the above steps? >conda create --name deeplearning python=3.6 >activate deeplearning >conda install ipython >conda install jupyter >conda install pandas >conda install scipy >conda install seaborn >conda install scikit-learn >conda install keras I face a similar issue recently, but after doing above steps I was able to install & use keras. You would also require Microsoft Visual C++ 2015 Redistributable (you may also check whether it is installed). If this doesn't work, I guess you will have to debug the scripts.

        – Darshit Vora
        Nov 26 '18 at 16:11






      • 1





        I just have been able to use keras and tensorflow now. Created virtual environment of python 3.6 using anaconda, installed some packages using conda install <package_name> . And then installed tensorflow and keras using pip install tensorflow pip install keras I think conda install tensorflow and conda install keras breaks these 2 packages somehow.

        – Eren Aladağ
        Nov 26 '18 at 17:35





















      • The first environment's python was not python 3.6 but the second ones python is 3.6, still it is not working having the same error(exiting prematurely)

        – Eren Aladağ
        Nov 26 '18 at 12:26













      • Just to confirm - Did you try all of the above steps? >conda create --name deeplearning python=3.6 >activate deeplearning >conda install ipython >conda install jupyter >conda install pandas >conda install scipy >conda install seaborn >conda install scikit-learn >conda install keras I face a similar issue recently, but after doing above steps I was able to install & use keras. You would also require Microsoft Visual C++ 2015 Redistributable (you may also check whether it is installed). If this doesn't work, I guess you will have to debug the scripts.

        – Darshit Vora
        Nov 26 '18 at 16:11






      • 1





        I just have been able to use keras and tensorflow now. Created virtual environment of python 3.6 using anaconda, installed some packages using conda install <package_name> . And then installed tensorflow and keras using pip install tensorflow pip install keras I think conda install tensorflow and conda install keras breaks these 2 packages somehow.

        – Eren Aladağ
        Nov 26 '18 at 17:35



















      The first environment's python was not python 3.6 but the second ones python is 3.6, still it is not working having the same error(exiting prematurely)

      – Eren Aladağ
      Nov 26 '18 at 12:26







      The first environment's python was not python 3.6 but the second ones python is 3.6, still it is not working having the same error(exiting prematurely)

      – Eren Aladağ
      Nov 26 '18 at 12:26















      Just to confirm - Did you try all of the above steps? >conda create --name deeplearning python=3.6 >activate deeplearning >conda install ipython >conda install jupyter >conda install pandas >conda install scipy >conda install seaborn >conda install scikit-learn >conda install keras I face a similar issue recently, but after doing above steps I was able to install & use keras. You would also require Microsoft Visual C++ 2015 Redistributable (you may also check whether it is installed). If this doesn't work, I guess you will have to debug the scripts.

      – Darshit Vora
      Nov 26 '18 at 16:11





      Just to confirm - Did you try all of the above steps? >conda create --name deeplearning python=3.6 >activate deeplearning >conda install ipython >conda install jupyter >conda install pandas >conda install scipy >conda install seaborn >conda install scikit-learn >conda install keras I face a similar issue recently, but after doing above steps I was able to install & use keras. You would also require Microsoft Visual C++ 2015 Redistributable (you may also check whether it is installed). If this doesn't work, I guess you will have to debug the scripts.

      – Darshit Vora
      Nov 26 '18 at 16:11




      1




      1





      I just have been able to use keras and tensorflow now. Created virtual environment of python 3.6 using anaconda, installed some packages using conda install <package_name> . And then installed tensorflow and keras using pip install tensorflow pip install keras I think conda install tensorflow and conda install keras breaks these 2 packages somehow.

      – Eren Aladağ
      Nov 26 '18 at 17:35







      I just have been able to use keras and tensorflow now. Created virtual environment of python 3.6 using anaconda, installed some packages using conda install <package_name> . And then installed tensorflow and keras using pip install tensorflow pip install keras I think conda install tensorflow and conda install keras breaks these 2 packages somehow.

      – Eren Aladağ
      Nov 26 '18 at 17:35















      0














      I fixed this on Python 2.7 by removing via Anaconda Navigator the item that goes by the name vs2008_win-32, that fixed my environment.






      share|improve this answer




























        0














        I fixed this on Python 2.7 by removing via Anaconda Navigator the item that goes by the name vs2008_win-32, that fixed my environment.






        share|improve this answer


























          0












          0








          0







          I fixed this on Python 2.7 by removing via Anaconda Navigator the item that goes by the name vs2008_win-32, that fixed my environment.






          share|improve this answer













          I fixed this on Python 2.7 by removing via Anaconda Navigator the item that goes by the name vs2008_win-32, that fixed my environment.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 8 at 4:00









          Ryan BargholzRyan Bargholz

          246




          246























              0














              On my system, the error was caused by another activation script, probably installed at the same time. To confirm that this is the case for you, look into the batch file generated dynamically at startup. To find out its name, change _conda_activate.bat as so:



              ...

              :FIXUP43
              @FOR /F "delims=" %%i IN ('@CALL "%CONDA_EXE%" shell.cmd.exe %*') DO @SET "_TEMP_SCRIPT_PATH=%%i"
              @IF "%_TEMP_SCRIPT_PATH%"=="" @EXIT /B 1
              @IF NOT "%CONDA_PROMPT_MODIFIER%" == "" @CALL SET "PROMPT=%%PROMPT:%CONDA_PROMPT_MODIFIER%=%_empty_not_set_%%%"

              :: Add these lines:
              set _TEMP_SCRIPT_PATH
              pause

              @CALL "%_TEMP_SCRIPT_PATH%"
              ...



              In the temp script comment out the invocation of other scripts
              until you find the culprit. For me it was something to do with vs2015.



              @SET "PYTHONIOENCODING=1252"
              @CALL "C:Usersx030551AppDataLocalContinuumminiconda3etccondaactivate.dkeras_activate.bat"
              :: @CALL "C:Usersx030551AppDataLocalContinuumminiconda3etccondaactivate.dvs2015_compiler_vars.bat"


              Once I had this information, Google pointed me to this issue. The solution to that depends too much on your environment to post here.






              share|improve this answer




























                0














                On my system, the error was caused by another activation script, probably installed at the same time. To confirm that this is the case for you, look into the batch file generated dynamically at startup. To find out its name, change _conda_activate.bat as so:



                ...

                :FIXUP43
                @FOR /F "delims=" %%i IN ('@CALL "%CONDA_EXE%" shell.cmd.exe %*') DO @SET "_TEMP_SCRIPT_PATH=%%i"
                @IF "%_TEMP_SCRIPT_PATH%"=="" @EXIT /B 1
                @IF NOT "%CONDA_PROMPT_MODIFIER%" == "" @CALL SET "PROMPT=%%PROMPT:%CONDA_PROMPT_MODIFIER%=%_empty_not_set_%%%"

                :: Add these lines:
                set _TEMP_SCRIPT_PATH
                pause

                @CALL "%_TEMP_SCRIPT_PATH%"
                ...



                In the temp script comment out the invocation of other scripts
                until you find the culprit. For me it was something to do with vs2015.



                @SET "PYTHONIOENCODING=1252"
                @CALL "C:Usersx030551AppDataLocalContinuumminiconda3etccondaactivate.dkeras_activate.bat"
                :: @CALL "C:Usersx030551AppDataLocalContinuumminiconda3etccondaactivate.dvs2015_compiler_vars.bat"


                Once I had this information, Google pointed me to this issue. The solution to that depends too much on your environment to post here.






                share|improve this answer


























                  0












                  0








                  0







                  On my system, the error was caused by another activation script, probably installed at the same time. To confirm that this is the case for you, look into the batch file generated dynamically at startup. To find out its name, change _conda_activate.bat as so:



                  ...

                  :FIXUP43
                  @FOR /F "delims=" %%i IN ('@CALL "%CONDA_EXE%" shell.cmd.exe %*') DO @SET "_TEMP_SCRIPT_PATH=%%i"
                  @IF "%_TEMP_SCRIPT_PATH%"=="" @EXIT /B 1
                  @IF NOT "%CONDA_PROMPT_MODIFIER%" == "" @CALL SET "PROMPT=%%PROMPT:%CONDA_PROMPT_MODIFIER%=%_empty_not_set_%%%"

                  :: Add these lines:
                  set _TEMP_SCRIPT_PATH
                  pause

                  @CALL "%_TEMP_SCRIPT_PATH%"
                  ...



                  In the temp script comment out the invocation of other scripts
                  until you find the culprit. For me it was something to do with vs2015.



                  @SET "PYTHONIOENCODING=1252"
                  @CALL "C:Usersx030551AppDataLocalContinuumminiconda3etccondaactivate.dkeras_activate.bat"
                  :: @CALL "C:Usersx030551AppDataLocalContinuumminiconda3etccondaactivate.dvs2015_compiler_vars.bat"


                  Once I had this information, Google pointed me to this issue. The solution to that depends too much on your environment to post here.






                  share|improve this answer













                  On my system, the error was caused by another activation script, probably installed at the same time. To confirm that this is the case for you, look into the batch file generated dynamically at startup. To find out its name, change _conda_activate.bat as so:



                  ...

                  :FIXUP43
                  @FOR /F "delims=" %%i IN ('@CALL "%CONDA_EXE%" shell.cmd.exe %*') DO @SET "_TEMP_SCRIPT_PATH=%%i"
                  @IF "%_TEMP_SCRIPT_PATH%"=="" @EXIT /B 1
                  @IF NOT "%CONDA_PROMPT_MODIFIER%" == "" @CALL SET "PROMPT=%%PROMPT:%CONDA_PROMPT_MODIFIER%=%_empty_not_set_%%%"

                  :: Add these lines:
                  set _TEMP_SCRIPT_PATH
                  pause

                  @CALL "%_TEMP_SCRIPT_PATH%"
                  ...



                  In the temp script comment out the invocation of other scripts
                  until you find the culprit. For me it was something to do with vs2015.



                  @SET "PYTHONIOENCODING=1252"
                  @CALL "C:Usersx030551AppDataLocalContinuumminiconda3etccondaactivate.dkeras_activate.bat"
                  :: @CALL "C:Usersx030551AppDataLocalContinuumminiconda3etccondaactivate.dvs2015_compiler_vars.bat"


                  Once I had this information, Google pointed me to this issue. The solution to that depends too much on your environment to post here.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 22 at 4:58









                  LeoLeo

                  1,5481119




                  1,5481119






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53473336%2finstalling-keras-broke-conda-virtual-environment-windows-10%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Wiesbaden

                      Marschland

                      Dieringhausen