There is a module I'd love to download, but it is only available in a zip file, how do I get such a file to work properly in python, so That I can import what 开发者_运维问答I want?
This is in Windows 7 BTW.
Just insert the whole path to the zipfile, c:/what/ever/itis.zip
, in your sys.path
, and import themodule
(assuming it's at the top "level" of the zipfile's simulated directory-tree structure).
精彩评论