Embedding a Python library in my own package

前端 未结 4 1914
臣服心动
臣服心动 2020-12-08 00:44

How can I \'embed\' a Python library in my own Python package?

Take the Requests library, for instance. How could I integrate it into my own package, the objective b

4条回答
  •  自闭症患者
    2020-12-08 01:35

    If you only need to run your application may be pyinstaller packaging is a better option.

    It will create a single bundle with everything that is needed, including Python, to avoid dependencies on the system you're running in.

提交回复
热议问题