简体   繁体   English

适用于Visual Studio 2017的Python工具

[英]Python tool for visual studio 2017

How do I add packages in a Python application Project in visual studio 2017. 如何在Visual Studio 2017的Python应用程序项目中添加软件包。

在此处输入图片说明

I had the same question. 我有同样的问题。 I found the answer at the following link: https://docs.microsoft.com/en-us/visualstudio/python/tutorial-working-with-python-in-visual-studio-step-05-installing-packages?view=vs-2017 我在以下链接中找到了答案: https : //docs.microsoft.com/zh-cn/visualstudio/python/tutorial-working-with-python-in-visual-studio-step-05-installing-packages?view = VS-2017

In short open the python environments window which you can find in the menu under: view -- other windows -- python environments. 简而言之,打开python环境窗口,您可以在以下菜单中找到:view-other windows-python environment。

在此处输入图片说明

If you are having trouble it is probably because the green circled combo box is set to Overview rather than packages. 如果遇到问题,可能是因为绿色圆圈组合框设置为“概述”而不是“包”。 First select an environment from the among the installed python environments. 首先从已安装的python环境中选择一个环境。 I chose env1 in the red circle. 我在红色圆圈中选择了env1。 Then if the green circled combo box is set to packages the packages installed in the selected environment will show in the blue circle. 然后,如果将绿色圆圈组合框设置为软件包,则在所选环境中安装的软件包将以蓝色圆圈显示。
To install a package in the selected environment type the package name in the listbox where it says "search pypl and installed packages. If intelli-sense finds the right package name double click to install your package. When done the new package shows up with the other packages in blue circled area. 要在选定的环境中安装软件包,请在列表框中键入“搜索pypl和已安装的软件包”。如果intelli-sense找到正确的软件包名称,请双击以安装您的软件包。完成后,新软件包将与其他包装在蓝色圆圈区域中。

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

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