我目前正在尝试建立jdbc连接。我正在使用:
jaydebeapi version - 1.1.1由于一些不兼容问题,我尝试使用以下命令从jpype版本- 0.7.2降级到版本0.6.3:
pip install JPype1==0.6.3 --force-reinstall但我得到以下错误:
ERROR: Command errored out with exit status 1: /home/user/venv/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5271s9v5/JPype1/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5271s9v5/JPype1/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-lnqyidc1/install-record.txt --single-version-externally-managed --compile --install-headers /home/user/venv/include/site/python3.8/JPype1
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1你能帮帮我吗?谢谢。
发布于 2020-04-20 06:03:26
看起来你的c++编译器坏了/没有安装。对于0.6.3,没有预编译的二进制文件,因此您必须自己编译它(在pip的自动帮助下)。
最终,您应该要求jaydebeapi维护者解决这个不兼容问题,以获得未来的证明和安全的解决方案。对于最新的jpype版本,如果您使用Windows、Linux或OSX,则不必自行编译。
发布于 2020-06-17 03:34:39
不幸的是,JPype在最近几个版本中引入了一些向后不兼容的更改,破坏了与JayDeBeApi的兼容性。
与此同时,JayDeBeApi>=1.2.0已经发布了。此版本支持较新的JPype1版本。请升级
pip install --upgrade JayDeBeApi JPype1https://stackoverflow.com/questions/61209863
复制相似问题