Error with ironPython; no longer installed

I have installed JetBrains PyCharm

I'm trying to run this script, which I found in a book.

    count = num / 2
    while count > 0:
        if num % count == 0:
            print count, 'is the largest factor of', num
            break
    count -= 1



I did File > New > Python File

When I run it, I get this.

Error running merge_text: Cannot run program "C:\Program Files (x86)\IronPython 2.7\ipy.exe" (in directory "C:\Users\rshuell\PycharmProjects\merge_all_text"): CreateProcess error=2, The system cannot find the file specified



I did have Iron Python 2.7 installed, but uninstalled it today, because it's kind of old, and I'm trying to learn this newer technology (version 3.4). I guess there is a dependency to IronPython somewhere. This must be easy to fix. A Google search didn't turn up anything useful.
1 comment
Comment actions Permalink
Within PyCharm, even a single file exists within the concept of a 'project', and the project has a Python interpreter setting.  You will need to change your project interpreter to one that is valid in order to run it from within PyCharm. If you don't have any copy of Python installed at all, you will need to get one.
0

Please sign in to leave a comment.