简体   繁体   中英

pip installed modules when packaging python scripts

I'm about to convert my python script into an executable with py2exe but I'm concerned that a few modules that I installed via pip (paramiko & xlrd) won't be included in that executable. Does anyone know if those modules that are not from the standard library are included in the script when you move it over to .exe format?

Yes. The paramiko folder - or any non-standard imported functionality - is located in the directory

C:\\path_to_your_script's_folder\\script_folder\\build\\bdist.win32\\winexe\\collect-2.7\\paramiko

This folder holds all of the .pyc files that are associated to that imported file (in this case paramiko).

Thanks to @Artyer and @Ofer Sadan for their help!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM