简体   繁体   English

如何在 Visual Studio Code 中找出已安装的 (Python) 库

[英]How to find out the installed (Python) libraries in Visual Studio Code

I have been coding Python 3.7 using Visual Studio Code on Windows 10. Recently, I have taken over a new project, which calls for some newer and different libraries.我一直在 Windows 10 上使用Visual Studio Code编写Python 3.7 。最近,我接手了一个新项目,该项目需要一些更新和不同的库。 Hence, for whatever reason, I decided not to customise my libraries, but to install Anaconda , and install the corresponding libraries into it.因此,无论出于何种原因,我决定不自定义我的库,而是安装Anaconda ,并将相应的库安装到其中。

However, since I cannot remember all the libraries I have already installed in Visual Studio Code (eg numPy , matplotlib , etc.), I'd like to ask if there is any way to get a list of the libraries I added on to my Python installation.但是,由于我不记得我已经在Visual Studio Code 中安装的所有库(例如numPymatplotlib等),我想问一下是否有任何方法可以获得我添加到我的库中的列表蟒蛇安装。

I appreciate your comments in advance!我提前感谢您的评论!

Cheers,干杯,

Sina新浪

You can list your installed libraries using pip .您可以使用pip列出已安装的库。

pip list will give you the list of all installed libraries for its python installation. pip list将为您提供其 python 安装的所有已安装库的列表。

NB: Just make sure you are using the pip.exe from the good install of python, in your case the 3.7 you mentionned注意:只需确保您使用的是良好安装的python 中的pip.exe,在您的情况下是您提到的3.7

您可以使用 conda list 列出 anaconda 环境中安装的所有软件包

use pip list command in terminal.在终端中使用 pip list 命令。 [https://pip.pypa.io/en/stable/cli/pip_list/] [https://pip.pypa.io/en/stable/cli/pip_list/]

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

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