如何在Mac OS 64位系统上安装32位的pyq来兼容python 3.6-32

2024-06-14 04:55:43 发布

您现在位置:Python中文网/ 问答频道 /正文

我的Mac操作系统上有32位kdb,并且想在Python3.6的32位版本中使用pyq。 目前,我有它的工作,32位Python2.7后安装如下。在

./python2.7-32 pip install -i https://pyq.enlnt.com --no-binary pyq pyq

现在我需要与Python3.6一起使用,并尝试通过以下方式安装32位:

^{pr2}$

它确实安装了它,但当我在发生某些事情后尝试运行时,它会给我一个错误:

~$:/Library/Frameworks/Python.framework/Versions/3.6/bin> ./pyq
'2017.05.02T21:14:50.022 dlopen(libpython3.6m.dylib, 10): image not found
@
"q"
"r:py[`pyq^`$getenv`PYTHONEXECUTABLE;args;lib]"

Tags: installpipnohttps版本commac错误
1条回答
网友
1楼 · 发布于 2024-06-14 04:55:43

从错误消息

dlopen(libpython3.6m.dylib, 10): image not found

看起来您已经构建了一个静态链接的python并使用了 with-pymallocconfig选项。请确保使用 enable-shared配置python。更好的是,使用brew构建的通用程序:

^{pr2}$

最后,如果要使用python的多个版本,请考虑使用虚拟环境。在

有关详细说明,请参见"Installing PyQ on macOS"。在

相关问题 更多 >