简体   繁体   English

Visual Studio 2017中Windows 7的Python支持

[英]Python Support for Windows 7 in Visual Studio 2017

I have 2 options here: I can go to Python's website and select the link that says python for windows and download the language from there, and then use any supported compiler-interpreter linker and debugger for it. 我在这里有2个选项:我可以转到Python的网站,并选择在Windows上显示python的链接,然后从那里下载语言,然后使用任何受支持的编译器-解释器链接器和调试器。 The other alternative is I can choose Python Deployment from Visual Studio's 2017 Installer. 另一个选择是我可以从Visual Studio 2017安装程序中选择Python部署。 The current version in the Visual Studio installer for Python is 3.6.3 which I'm fairly sure that if I install it into Visual Studio and there are any updates Visual Studio will let me know. 适用于Python的Visual Studio安装程序的当前版本为3.6.3,我可以肯定的是,如果将其安装到Visual Studio中,并且有任何更新,Visual Studio会让我知道。 If I choose to download Python from their website there newest version is 3.6.5. 如果我选择从其网站下载Python,则最新版本为3.6.5。 I'm not too concerned about the differences in the versions. 我不太担心版本之间的差异。 I just need to have a working version of the language with a supported compiler - interpreter... 我只需要具有支持的编译器的语言的有效版本-解释器...

Is there any major difference from choosing the one over the other? 选择一个与另一个有什么主要区别? I read through the MS docs about their tools for Visual Studio on Python and they do claim that if you already have it installed there is no need to check the boxes to install the core language through their installer as it will automatically detect if you have Python installed. 我通读了MS文档,了解了他们在Python上使用Visual Studio的工具,他们确实声称如果已经安装了该工具,则无需选中复选框以通过其安装程序安装核心语言,因为它将自动检测您是否安装了Python安装。 For Windows 7 and Visual Studio 2017 which is more preferable: downloading Python from their website directly and then integrating it into Visual Studio; 对于Windows 7和Visual Studio 2017,则更可取:直接从其网站下载Python,然后将其集成到Visual Studio中; or just letting Visual Studio install its version for me? 还是只是让Visual Studio为我安装其版本? I am new to python; 我是python的新手; but I need a working version of it in order to build binaries for MPIR - MPFR - MPFRCPP. 但我需要它的工作版本才能为MPIR-MPFR-MPFRCPP生成二进制文件。

The reason I asked is if I chose to install all the available options under Visual Studio it is about 18GB in size which would include Python's tools and different versions of Anaconda. 我问的原因是,如果我选择在Visual Studio下安装所有可用选项,那么它的大小约为18GB,其中将包括Python的工具和不同版本的Anaconda。 However the Visual Studio documents also stated if you decide to use Python for Data Science to also select the Data Science & Analytical Applications from the workloads section. 但是,Visual Studio文档还说明了您是否决定使用Python for Data Science从工作负载部分中选择Data Science&Analytical Applications。 This would add about another 2GB. 这将增加大约2GB。 This would take some time to download and install postponing any and all of my project developments. 下载和安装将需要一些时间来推迟我的所有项目开发。 I just want to know what I'm in store for and what is the better of my two options. 我只想知道我要买什么,这两个选项中的哪个更好。

For Windows 7 and Visual Studio 2017 which is more preferable: downloading Python from their website directly and then integrating it into Visual Studio; 对于Windows 7和Visual Studio 2017,则更可取:直接从其网站下载Python,然后将其集成到Visual Studio中; or just letting Visual Studio install its version for me? 还是只是让Visual Studio为我安装其版本?

Just let Visual Studio 2017 download it for you, it is much more easy, but still the choice still depends on you because installing it through VS or their Website is likely the same. 只需让Visual Studio 2017为您下载它,它就容易得多,但是选择仍然取决于您,因为通过VS或他们的网站安装它可能是相同的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM