PIP安装IBM_DB在Ubuntu上不起作用22.04 Python 3.8
我正在尝试在Python上安装IBM_DB v3.1.2 3.8.13 Ubuntu 22.04(5.15.0-40代)
pip install ibm_db
Collecting ibm_db
Downloading ibm_db-3.1.2.tar.gz (1.1 MB)
|████████████████████████████████| 1.1 MB 5.5 MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/tmp/tmpfv417hua/output.json'
其他命令,例如pip pip安装numpy
按预期工作,
任何帮助都将不胜感激。
编辑:我能够使用Anaconda解决问题。 conda install -c conda -forge ibm_db
。现在IBM_DB
IBM_DB.PConnect(Connection_string,“”,“”)
引发错误
[IBM][CLI Driver] SQL10013N The specified library "GSKit Error: 207" could not be loaded. SQLSTATE=42724 SQLCODE=-10013
,似乎也是已知不起作用。
编辑2 :pip3 install'ibm_db == 3.1.1'
工作,因此问题可能是3.1.2
I am trying to install ibm_db v3.1.2 on python 3.8.13 Ubuntu 22.04 (5.15.0-40-generic)
pip install ibm_db
Collecting ibm_db
Downloading ibm_db-3.1.2.tar.gz (1.1 MB)
|████████████████████████████████| 1.1 MB 5.5 MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/tmp/tmpfv417hua/output.json'
Other commands, such as pip install numpy
work as expected
Any help would be appreciated.
Edit: I was able to work around the problem using Anaconda.conda install -c conda-forge ibm_db
. Now the basic use of ibm_db
ibm_db.pconnect(connection_string, "", "")
throws the error
[IBM][CLI Driver] SQL10013N The specified library "GSKit Error: 207" could not be loaded. SQLSTATE=42724 SQLCODE=-10013
which also seems to be known, but the suggested solution does not work.
Edit 2: pip3 install 'ibm_db==3.1.1'
worked, so the problem may be with 3.1.2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论