本来已经安装了anaconda,不过想更进一步,试试c#与python混合编程。
我记得微软的vs2017,vs2019已经支持了python,如果能用一个IDE搞定全部,自然是最好的。
首先理解vs2017编译器是怎么支持python的。
① 按照微软的说法,Visual Studio 的“Python 环境”窗口(下方为其扩展后的加宽视图)具有一块用于管理所有全局 Python 环境、conda 环境和虚拟环境的单独区域 。 Visual Studio 可自动检测出标准位置是否安装 Python,并且允许用户配置自定义安装。 在每个环境中,用户都可以轻松管理包、打开该环境的交互窗口和访问环境文件夹。
总结-----visual studio能当大管家,电脑里安装了其他python环境也没问题。

②
Use the Open interactive window command to run Python interactively within the context of Visual Studio. Use the Open in PowerShell command to open a separate command window in the folder of the selected environment. From that command window you can run any python script.
For every Python environment known to Visual Studio, you can easily open the same interactive (REPL) environment for a Python interpreter directly within Visual Studio, rather than using a separate com

本文介绍了如何在Visual Studio 2017或2019中设置Python环境,用于与C#混合编程。VS作为Python环境的大管家,支持自动检测和管理Python环境,提供交互窗口和PowerShell命令行两种交互方式,以及强大的代码编辑器集成。此外,VS还帮助管理项目复杂性,支持智能提示、调试、性能评估和C++扩展开发,但不提供创建独立Python可执行文件的功能。
2165

被折叠的 条评论
为什么被折叠?



