[英]How to make visual studio add python to the system path?
Is it possible to add python to the system path from visual studio/ visual studio installer?是否可以将 python 从 Visual Studio/Visual Studio 安装程序添加到系统路径?
I know it can be manually added to the system path, however I think it's strange that there is no way to add it during install.我知道它可以手动添加到系统路径中,但是我认为在安装过程中无法添加它很奇怪。
I develop in VS2019 but often want to run my scripts separately via command line, on several different machines.我在 VS2019 中开发,但经常想通过命令行在几台不同的机器上单独运行我的脚本。 Adding python to the path isn't a big deal, but it's one extra step.将 python 添加到路径中并不是什么大问题,但这是一个额外的步骤。
On Visual Studio Code, you could go to "Extensions" on the left hand side of the window and type in "Python" within the search box.在 Visual Studio Code 上,您可以 go 到 window 左侧的“扩展”,然后在搜索框中输入“Python”。 You will find the regular "Python", "Python for VSCode v.0.2.3", etc. Each extension has a rating and how many downloads users have done.你会发现常规的“Python”、“Python for VSCode v.0.2.3”等。每个扩展都有一个评分以及用户完成了多少下载。 I would recommend viewing the number of downloads and the rating before downloading, and for me it would be the Python with 4 stars with about 49K downloads, but again, it is completely up to you:) I wish you well with your journey!!我建议在下载前查看下载次数和评分,对我来说,这将是 Python 获得 4 颗星,下载量约为 49K,但同样,这完全取决于您:)祝您旅途愉快!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.