List dependencies of Python wheel file

  • A+
Category:Languages

I have Python wheel file: psutil-5.4.5-cp26-none-linux_x86_64.whl

How can I list the dependencies this wheel has?


As previously mentioned, .whl files are just ZIP archives. You can just open them and poke around in the METADATA file.

There is a tool, however, that can make this manual process a bit easier. You can use pkginfo, which can be installed by just using pip.

$ pip install pkginfo $ pkginfo -f 'requires_dist' psutil-5.4.5-cp27-none-win32.whl requires_dist: ["enum34; extra == 'enum'"] 

Comment

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: