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.
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 条评论
排序方式
日期
投票数
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.
请先登录再写评论。