简体   繁体   English

使用脚本交付python外部库

[英]Deliver python external libraries with script

I want to use my script that uses pandas library on another linux machine where is no internet access or pip installed. 我想使用我的脚本,该脚本在未安装Internet访问或pip的另一台Linux机器上使用pandas库。 Is there a way how to deliver the script with all dependencies? 有没有办法交付带有所有依赖项的脚本? Thanks 谢谢

You can use pyinstaller . 您可以使用pyinstaller

It can create single executable file with included python or directory for distribution. 它可以使用包含的python或目录创建单个可执行文件以进行分发。

或通过附加sys.modules在脚本中手动设置所需的依赖项,并将所有所需的文件打包在一起。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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