简体   繁体   中英

How to build a python project into a .deb executable with Pypi requirements included?

I want to build a python project into a.deb executable, i'm using stdeb but it dont fit well to projects that use PyPi dependencies. There is a way to use stdeb with venv to encapsulate the dependencies in the build?

I've already tryied to use vdist, dh-virtualenv and the install_requires on the setup.py to solve my problem with dependencies on build but not luck.

Take a look at PyInstaller . I used it to create an executable for windows for an application that used pandas and reportlab and they were nicely bundled and everything worked as expected no need to install anything when deploying. I'm guessing from the documentation that it will also work on Linux.

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