Visual Studio-“环境IronPython | 2.7-32似乎配置不正确或丢失" [英] Visual Studio - "The environment IronPython|2.7-32 appears to be incorrectly configured or missing"

查看:2133
本文介绍了Visual Studio-“环境IronPython | 2.7-32似乎配置不正确或丢失"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

复制步骤:

  1. 打开Visual Studio 2017(在Windows 10 64位上为Pro)
  2. 文件>新建项目> IronPython应用程序
  3. 运行默认程序: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).

  1. 您需要下载IronPython并从 Github 单独安装.
  2. 安装后,您需要手动
  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.

这篇关于Visual Studio-“环境IronPython | 2.7-32似乎配置不正确或丢失"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆