Check installed packages in Python
more_vert
Different programming languages have different package management tools.
For Python, pip is the package installer. pip package itself can also be used to list all the installed packages in the system. However that doesn't work anymore in the latest versions. You can use pkg_resources package to get the same information. You can also use help function to list all the installed modules.
help('modules')
Code snippet
import pkg_resources for d in pkg_resources.working_set: print(d.project_name, d.version)
info Last modified by Raymond 4 years ago
copyright
This page is subject to Site terms.
Log in with external accounts
warning Please login first to view stats information.
code
Use sort() and orderBy() with PySpark DataFrame
article
Spark (PySpark) - 从SQL Server数据库中读取数据
article
PySpark: Convert JSON String Column to Array of Object (StructType) in Data Frame
article
Convert string to date in Python / Spark
article
Install Miniconda and Anaconda on WSL 2 or Linux
Read more (92)