Search code examples
pythonpython-2.7matplotlibruntime-error

this application has requested the runtime to terminate it in an unusual way


I am working with python 2.7.18 and when I run my code this error appears telling "This application has requested the runtime too ...", I closed all my codes and write this simple code which is a simple plotting of a mathematical function, but again I came up with this error, don'tenter image description here know how to solve it. The code and error picture is attached here, does anyone know how to solve it ? Thanks in advance.


Solution

  • Following steps are recommended to solve the problem:

    1. Run cmd as admin and execute this code : bcdedit /set IncreaseUserVa 3072 Restart your computer and then see if the problem solved If not do the 2nd one 2.Open control pannel> program and features > repair all versions of Microsof visual c++ then restart pc and test 3.uninstall all the Microsoft visual c++ versions and download and install them again from Microsoft.com restart and test
    2. Go to sereby.org website and download runtime in download section. Install it and most often, one of these will solve the problem