我正在尝试在Python上安装Websphere MQ客户端和PYMQI,以通过队列发送/接收消息。
环境变量已经自动设置好了。
我已经安装了IBM MQ CLient V8.0.11,并且没有出现任何问题。
然后,我继续安装(pip install pymqi),看起来也很顺利。
当我尝试在Pycharm中运行此代码时,出现以下错误:
环境变量已经自动设置好了。
我已经安装了IBM MQ CLient V8.0.11,并且没有出现任何问题。
然后,我继续安装(pip install pymqi),看起来也很顺利。
import pymqi
qmgr = pymqi.connect('QM.1', 'SVRCONN.CHANNEL.1', '192.168.1.121(1434)')
putq = pymqi.Queue(qmgr, 'TESTQ.1')
putq.put('Hello from Python!')
当我尝试在Pycharm中运行此代码时,出现以下错误:
![enter image description here](https://istack.dev59.com/HoCtP.webp)
/etc/ld.so.conf.d/mq.conf
文件中,并运行了ldconfig
命令。 - undefined