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

后端 未结 3 879
余生分开走
余生分开走 2021-01-17 12:15

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 progra
相关标签:
3条回答
  • 2021-01-17 12:29

    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.

    0 讨论(0)
  • 2021-01-17 12:33

    When switching from Python 3.8 to 3.9 I came across the same error (also with pylint). I simply edited the project.pyproj (xml) file from: <InterpreterId>Global|PythonCore|3.8</InterpreterId> to: <InterpreterId>Global|PythonCore|3.9</InterpreterId>.

    0 讨论(0)
  • 2021-01-17 12:37

    Download the msi file for IronPython from Github. Then copy the path where it is downloaded and add it to the path in the system environment variable. Then restart visual studio. Select the project and set the python environment to IronPython.

    0 讨论(0)
提交回复
热议问题