如何使Cython库可用于我的Python计划?

发布于 2025-02-07 05:41:19 字数 388 浏览 3 评论 0原文

我正在研究一个使用Cython库的旧版项目:

engine.cpython-37m-x86_64-linux-gnu.so

它已下载到我当前的工作目录:

engine.cpython-37m-x86_64-linux-gnu.so
test.py

然后在Test.py中,它尝试从Engine Library导入:

from engine import authenticate

目前找不到引擎库。假设我当前的虚拟环境是“测试”,如何将“引擎”库用于我的虚拟环境“测试”?

原始项目使用Docker部署,我想摆脱Docker环境并在纯PIP环境中进行测试。

I am working on a legacy project which uses a cython library:

engine.cpython-37m-x86_64-linux-gnu.so

It is downloaded to my current working directory:

engine.cpython-37m-x86_64-linux-gnu.so
test.py

Then in the test.py, it tried to import from engine library:

from engine import authenticate

Currently, it cant't find the engine library. Suppose my current virtual environment is 'test', how can I make the 'engine' library to my virtual environment 'test'?

The original project uses a docker deployment and i want to get rid of the docker environment and test it in a pure pip environment.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文