如何将非Python软件包(.tar.bz2)安装/转换为Anaconda软件包?

编程入门 行业动态 更新时间:2024-10-21 06:31:37
本文介绍了如何将非Python软件包(.tar.bz2)安装/转换为Anaconda软件包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要将.tar.bz2格式的一些非Python包转换为Anaconda/miniConda .egg文件并安装它们.为此,我需要Windows的bld.bat文件.互联网上有什么地方可以找到一些示例来做到这一点.

I need to convert some non-Python packages that are in the .tar.bz2 format to Anaconda/miniConda .egg files and install them. For this I would need a bld.bat file for Windows. Is there any place on the internet where I can find some examples to do this.

也许也可以编写.py Python脚本来执行此操作. .tar文件在线存在,我需要使用脚本自动下载并安装这些文件.

Maybe it is possible to write a .py Python script to do this as well. The .tar files are present online and I need to download and install those automatically using the script.

推荐答案

使用conda-build,您可以像构建Python包一样来构建非Python包.支持从tarball采购.

With conda-build you can build non-Python packages the same way that you build Python packages. Sourcing from a tarball is supported.

这是conda-build的文档,其中包含一些教程和示例配方:

Here is the documentation for conda-build with several tutorials and example recipes:

  • conda.io/docs/building/build.html
  • python-packaging-tutorial.readthedocs.io/en/最新/.最初在这里链接了另一个教程,但是它已经过时了,因此被删除了.这个新教程是最接近原始教程的有用替换资源.
  • conda.io/docs/building/build.html
  • python-packaging-tutorial.readthedocs.io/en/latest/. There was another tutorial linked here originally, but it got outdated, and it was removed. This new tutorial is the closest useful replacements resource for the original.

更多推荐

如何将非Python软件包(.tar.bz2)安装/转换为Anaconda软件包?

本文发布于:2023-07-05 06:57:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1034400.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:软件包   转换为   如何将   tar   Python

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!