Visual Studio-“环境IronPython | 2.7-32似乎配置不正确或丢失" [英] Visual Studio - "The environment IronPython|2.7-32 appears to be incorrectly configured or missing"
问题描述
复制步骤:
- 打开Visual Studio 2017(在Windows 10 64位上为Pro)
- 文件>新建项目> IronPython应用程序
- 运行默认程序:
print('Hello world')
运行它时,出现以下错误:
When I run it, I get the following error:
环境"IronPython | 2.7-32"似乎配置不正确或丢失.
您可能需要安装它或创建虚拟环境
The environment "IronPython|2.7-32" appears to be incorrectly configured or missing.
You may need to install it or create a virtual environment
我转到VS安装程序的单个组件"选项卡的编译器"部分,并检查了Python 2.7& 3.6选择,但我仍然遇到问题
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
推荐答案
您需要设置IronPython 2.7环境*.
*当前,您无法通过Visual Studio安装程序来完成此操作(没有要安装的IronPython Package选项).
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).
- You need to download IronPython and install it separately from Github.
- After it's installed, you need to select the correct python environment within your VS project.
- 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.
这篇关于Visual Studio-“环境IronPython | 2.7-32似乎配置不正确或丢失"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!