Cpython interpretter / IronPython interpretter No module named clr

不打扰是莪最后的温柔 提交于 2019-12-03 09:03:54

I got the same error and resolved it with these steps:

I changed the project properties General>Interpreter to IronPython 2.7 Debug>Launch mode to IronPython(.NET) launcher

At first I didn't see IronPython as an interpreter option to select from. I added the path to IronPython installation to my Path System variable, restarted Visual Studio and it worked.

Mr. Ned

I understand this is an old question, but I ran into the same thing today, and did not find any satisfactory answers.

I'm working with a new install of Visual Studio 2015 - Community under Windows 8.1. After installing a bunch of additional add-ons and tool boxes, I thought it would be complete. I had an IronPython debug option in VS, but it had not been (successfully) installed!

If you're having issues with IronPython, look in C:\Program Files (x86), and verify the directory IronPython 2.7 exists.

(IronPython 2.7 is available at http://ironpython.codeplex.com/releases/view/169382.)

Once you have verified installation was successful, setup your development environment:

  • Create a Python project in Visual Studio
  • At the bottom of the Project menu, click <project name> Properties
  • On the General page, select IronPython 2.7 as your interpreter
  • On the Debug page, set Launch mode to IronPython (.Net) launcher
  • Finally, click on Debug Standard Library.

Using that setup, I was able to generate a blank Windows form application, and start it with/without debugging.

OK dudes, i tell you how i solved the problem, i reinstalled everything from the scratch, i used to use visual studio express, but i installed the "professional" version, then i reinstalled everything from http://ironpython.codeplex.com/releases/view/81726 and suddenly all things worked fine in the console, then voila, ironpython windows form project in visual studio is working now :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!