MS Visual Studio-Python环境-添加解释器-"+自定义..."显示为灰色 [英] MS Visual Studio-Python Environment-Adding an interpreter- “+ Custom…” greyed out

查看:120
本文介绍了MS Visual Studio-Python环境-添加解释器-"+自定义..."显示为灰色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

第一次发布!真的卡住了,需要有经验的帮助.我是一名机械工程专业的学生,​​具有少量的c编程经验,即将使用Python处理一个个人项目,我将学习使用as-I-go.

First time posting! Really stuck, need experienced help. I am a mechanical engineering student with a small amount of c programming experience, about to tackle a personal project using Python, which I will learn to use as-I-go.

试图在MS Visual Studio 2015(VS)的Python环境中添加解释器.

Trying to add an interpreter to the Python Environment in MS Visual Studio 2015 (VS).

下载Python 3.6,当时我没有意识到MS建议将3.5与VS一起使用. VS没有自动找到Python 3.6,因此我尝试使用"+ Custom ..."手动添加路径.在版本下拉菜单中3.6不是一个选项,因此 尝试输入.当我应用"时,程序停止工作.重新启动VS之后,仍不添加Python,并且"+自定义"按钮显示为灰色,不允许我自动添加正确的Python 3.5或任何其他解释器 认可.

Downloaded Python 3.6, at the time I did not realize 3.5 was recommended by MS for use with VS. VS did not find Python 3.6 automatically, so I tried to add the path manually using "+ Custom...". 3.6 wasn't an option in the edition dropdown, so tried to type it in. When I "Applied", the program stopped working. After restarting VS, Python is still not added, and the "+ Custom" button is greyed out, not allowing me to add the proper Python 3.5 or any other interpreter not automatically recognized.

自此以来,我成功添加的唯一解释器是IronPython,它会被自动识别.已安装Python 3.6、3.5、3.4.4,但无法自动识别.

The only interpreter I have successfully added since is IronPython, which is automatically recognized. Python 3.6, 3.5, 3.4.4 were installed but not automatically recognized.

在网络搜索中,我发现一个人遇到了同样的问题,但是只恢复了对"+习惯"的使用.通过重新安装他的操作系统和VS按钮.我想避免这种极端的维修策略. Google搜索"不能 在python环境中按+自定义  #1760&;

Web searching I found one person who had the same problem but only recovered use of the "+ custom" button by reinstalling his operating system and VS. I would like to avoid this extreme repair strategy. Google search "can`t press +custom in python environments #1760"

在整个故障排除过程中,我已多次重启计算机和VS.我相信,一旦"+自定义..."按钮变为活动状态,其余的解释器安装将正常进行.

I have restarted my computer and VS many times throughout troubleshooting. I am confident that once the "+ Custom..." button becomes active, the rest of the interpreter install will go fine.

另外,如果有一种较低层的方法来将解释器添加到Python环境中,那么如果提供了一些指导,我会尝试该策略.

Alternatively, If there is a lower-level way to add interpreters to the Python Environment, I would attempt that strategy if some guidance were provided.

感谢您考虑

推荐答案

J.Doe2,

Hi J. Doe2,

根据您的描述,我认为我可以在您这方面对您的问题进行重述:

According to your description, I think I could repro your issue in my side:

我已经下载了Python3.6并配置了环境,然后按自动检测->按应用错误-> ;,然后获得以上屏幕截图.

I have download the Python3.6 and configure the Environment, press auto detect->press apply error->then I get the above screenshot.

我将尝试修复我的VS,需要一段时间,明天我将更新我的回复.感谢您的理解.

I will try to repair my VS, it need a period time, I will update my reply tomorrow. Thanks for your understanding.

此致

奥斯卡


这篇关于MS Visual Studio-Python环境-添加解释器-"+自定义..."显示为灰色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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