AIX 上的 Python:我有哪些选择?

发布于 2024-08-09 13:45:32 字数 370 浏览 13 评论 0原文

我需要为工作项目制作一些 Python 应用程序。目标平台是AIX 5.3。

我的问题是:我应该使用哪个版本的 Python?

我的要求是:

  • Python 版本必须易于在目标计算机上安装。其他人会根据我编写的说明执行此操作,因此无需从源代码或类似内容进行编译。

  • Python 版本必须有 ncurses 或curses 支持(我正在制作一个表单处理程序)。

我发现了用于 AIX 的两个不同的 Python 预编译版本,但其中一个(2.1.something)不包含curses 模块,另一个(2.3.4,RPM 格式)具有我未能满足的先决条件)。

任何帮助将不胜感激。

I need to make some Python applications for a work project. The target platform is AIX 5.3.

My question is: What version of Python should I be using?

My requirements are:

  • The Python version must be easy to install on the target machines. Others will do that according to instructions that I write, so no compiling from source or anything like that.

  • The Python version must have ncurses or curses support (I'm making a form handler).

I've found two different precompiled versions of Python for AIX, but one (2.1.something) didn't include the curses module, and the other (2.3.4, RPM format) had prerequisites that I failed to fulfill).

Any help would be greatly appreciated.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

久伴你 2024-08-16 13:45:33

我会自己从源代码编译它,并在说明中告诉他们从哪里下载它

I'd compile it from source myself and tell them where to download it from in the instructions

触ぅ动初心 2024-08-16 13:45:33

我们使用了 ActiveState 的 Python 以及 Pware 编译版本。两者都运作良好。对于 AS,我们使用了 2.5 和 2.6。对于 Pware,只需 2.6。 AS 2.5 和 2.6 都支持我们机器上的诅咒。

我是从源代码编译的,但通常会在使用 ctypes 或 SSL 时遇到问题。目前我已经安装了 AS Python2.6 的 Frankenstein 选项,但我从 Pware 中取出了几个 *.so 文件。我正在使用 GCC,因为我们从未花钱购买编译器,但根据您对 Python 的需求,如果我能做到,那绝对是可行的。

我要提到的是,AS Python 声称与标准 Python 100% 兼容,并且它适用于我们迄今为止所做的一切(主要是 Web 应用程序)。

We've used ActiveState's Python as well as Pware's compiled version. Both have worked well. For AS, we've used 2.5 and 2.6. For Pware, just 2.6. Both 2.5 and 2.6 from AS support curses on our machine.

I've compiled from source but usually wind up having trouble with with ctypes or SSL. Currently I have the Frankenstein option going of AS Python2.6 installed but I pulled out a couple of *.so files from Pware's. I'm using GCC since we've never ponied up for a compiler but depending on what you need from Python, it's definitely doable if I can do it.

I will mention that AS Python claims to be 100% compatible with standard Python and it has been for everything we've done so far (mostly web applications).

撞了怀 2024-08-16 13:45:32

使用 Activestate 的 Python 2.6.3.7 AS 包。他们在他们的下载站点上有一个适用于 AIX 的二进制包。

如果您没有 AIX 计算机来测试它,则安装在 Solaris 或 Linux 上的工作方式相同,因此您可以基于此编写文档。基本上,您解压缩 tarball 文件,使用 tar 解压存档,将目录更改为解压文件夹,运行 shell 脚本来安装它,告诉 shell 脚本将其放置在哪个目录中,然后等待。

通常,这将用于安装到用户目录中,无需超级用户权限,但您可以将其安装在您喜欢的任何位置。您可能还需要编辑系统配置文件,以确保所有用户都可以找到 Python 二进制文件。

我建议使用最新的 Python 2.6,因为它有很多错误修复,并且现在有大量的第三方库移植到它。此外,标准库还包含许多以前必须单独收集的有用内容。 Curses 位于 Python 2.6 的标准库中。

确保避免使用 Python 3.1,因为它还不够成熟,并且为大多数业务应用程序开发提供的好处很少。

Use the AS Package of Python 2.6.3.7 from Activestate. They have a binary package for AIX on their download site.

If you don't have an AIX machine to test it on, the install works the same way on Solaris or Linux, so you could write your documentation based on that. Basically, you ungzip the tarball file, use tar to unpack the archive, change directory to the unpacked folder, run a shell script to install it, tell the shell script what directory to place it in, and wait.

Normally this would be used to install into a user directory, without superuser permissions, but you could install it anywhere that you like. You might also need to edit the system profile in order to make sure that all users can find the Python binary.

I suggest the latest Python 2.6, because it has a lot of bugfixes, and there is now a critical mass of 3rd party libraries ported to it. Also, the standard library includes a lot of useful stuff that you used to have to collect separately. Curses is in the standard library of Python 2.6.

Make sure to avoid Python 3.1 since it has not yet matured enough and provides few benefits for most business applications development.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文