pip - Some packages in python site-packages are not displayed -
these list of packages presented in machine. when tried use following python command list packages version, able see packages jinja,jsonschema,markupsafe , matplotlib , package "isapi" missing.
>>> import pip >>> ["%s==%s" % (i.key, i.version) in pip.utils.pkg_resources.working_set] result / output:
['jinja2==2.7.3', 'jsonschema==2.5.1', 'markupsafe==0.23', 'matplotlib==1.4.3'] my requirement ("isapi") in list too. there option available ? please provide suggestions here.
thanks in advance :)
isapi not pypi package , not installed pip. can see since there no folder package name .dist-info suffix.
the .dist-info folders1 created pip part of install process store meta information pypi package. contain information package can find on pypi website. next folders, pip add 1 actual package real package name2 contains real python modules.
since isapi folder did not come pypi package, came source. example external setup utility installs folder in there. it’s possible different pypi package installed folder along dependency (not case packages though). suggest looking folder , python modules idea , come from.
anyway, since not installed pip, pip not know it. not appear in package list.
unfortunately, there no other way find out module programmatically. 1 possible way directory listing of site-packages folder , work through modules way. use pkgutil module list of all modules (including built-in modules) , filter out in site-packages folder. other that, there no other “registy” or keep track of in folder. , if think it, there can’t 1 since drop new folder in there on own.
foot notes:
1 .dist-info folders invented pep 376 way unify way distributions managed.
2 python packages not required spelled pypi packages. allows custom casing in names pypi packages (since python packages should lower case), or different names. example, pypi package name beautiful soup 4 beautifulsoup4, python package called bs4.

Comments
Post a Comment