如何在Python虚拟环境中添加具有不寻常构建的自定义软件包?

发布于 2025-02-08 19:39:09 字数 264 浏览 0 评论 0原文

我是虚拟环境的新手,但是需要将它们用于我正在处理的超级计算机上的Python软件包。我有一个希望使用的软件包,但是我无法使用pip以安装所需的其他软件包的方式安装它。

要构建此软件包,我必须导航到特定目录并运行./ build命令,然后我能够导入 将其纳入python并正常使用。有没有办法在虚拟环境中进行设置,以便我可以source ...激活,并且可以构建软件包并可以使用该软件包?

I'm new to virtual environments, but am required to use them for using python packages on an supercomputer that I am working on. I have a package that I wish to use, but I can't install it using pip in the way that I can install the other packages I need.

To build this package, I have to navigate to a particular directory and run a ./build command, and then I am able to import it into python and use as normal. Is there a way to set this up within a virtual environment so that I can just source ... activate and the package will already be built and can be used?

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

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

发布评论

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