The pkg_resources distribution APIs need a distribution name; this does not necessarily correlate with the package name the 'current' module is operating under. Take the BeautifulSoup project, for example. The current version uses bs4 as the package name, but the distribution name on PyPI is beautifulsoup4. WebOct 16, 2016 · Remove from pkg_resources import get_distribution from import for all files in the package. 5 floor Murtaza Samiwala 1 2024-12-15 10:57:27 I had the exact same issue. I solved it by doing this: Goto the Pyinstaller hooks folder (~\Lib\site-packages\PyInstaller\hooks) Find the file hook-google.cloud.py, open it, and add the …
Python Examples of pkg_resources.get_distribution
WebFeb 28, 2024 · EXECUTE sp_execute_external_script @language = N'Python', @script = N' import pkg_resources import pandas OutputDataSet = pandas.DataFrame (sorted ( [ (i.key, i.version) for i in pkg_resources.working_set]))' WITH result sets( (Package NVARCHAR(128), Version NVARCHAR(128))); Find a single Python package WebApr 30, 2007 · Currently, pkg_resources is only available through installing the entire setuptools distribution, but it does not depend on any other part of setuptools; in effect, it comprises the entire runtime support library for Python Eggs, and is independently useful. fred story productions
Get Python package information - SQL Server Machine Learning …
WebFeb 7, 2014 · pip.get_installed_distributions() is in internal function that was never meant to be externally called and has since been locked out by external functions. Lets switch over to the supported function in setuptools pkg_resources.get_distribution() to search the installed packages. See: pypa/pip#5243 Fixes: DataSploit#255 WebFunction: get_version def get_version( include_path = False): import pkg_resources path = os. path.split( __file__)[0] try: pkg = pkg_resources.get_distribution('curlbomb') except pkg_resources. WebJan 16, 2012 · Since we needed a reliable way to get the version of any package, module or submodule, I ended up writing getversion. It is quite simple to use: from getversion … fred storm tracker