Visual Studio - “The environment IronPython|2.7-32 appears to be incorrectly configured or missing”

随声附和 提交于 2019-12-04 03:14:44

问题


Steps to the Reproduce:

  1. Open Visual Studio 2017 (Pro on Windows 10 64-bit)
  2. File > New Project > IronPython Application
  3. Run the default program: print('Hello world')

When I run it, I get the following error:

The environment "IronPython|2.7-32" appears to be incorrectly configured or missing.
You may need to install it or create a virtual environment

I went to VS Installer, Individual Components tab, Compilers section, and checked on the Python 2.7 & 3.6 selections, but I'm still getting the problem


回答1:


You need to set up the IronPython 2.7 environment*.
*Currently you cannot do it through the Visual Studio Installer (there isn't an IronPython Package option to install).

  1. You need to download IronPython and install it separately from Github.
  2. After it's installed, you need to select the correct python environment within your VS project.
  3. If the IronPython 2.7 environment is not properly set then you have to do it manually

Hopefully, Microsoft will patch this in the future.



来源:https://stackoverflow.com/questions/46045103/visual-studio-the-environment-ironpython2-7-32-appears-to-be-incorrectly-con

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