英文:
failing on OSError libgssapi_krb5.so: cannot open shared object file while installing using pip python 3.11
问题
我试图安装requests-kerberos包 pip install requests-kerberos
,但在 OSError: ...:/libgssapi_krb5.so: cannot open shared object file: No such file or directory
处失败。
我在../python/lib/中有libgssapi_krb5.so。我尝试将../python/lib/添加到我的LD_LIBRARY_PATH,但没有成功。
我使用的是Python 3.11.1版本。
问题可能是什么?尽管LD_LIBRARY_PATH包含lib,但为什么找不到?
完整错误信息:
安装构建依赖项...完成
正在运行命令以获取构建轮的要求
追溯(最近的调用最早):
文件 "my_area/python_tst/my_py/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py",行 353,在 <module>
main()
文件 "my_area/python_tst/my_py/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py",行 335,在 main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
文件 "my_area/python_tst/my_py/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py",行 118,在 get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
文件 "/tmp/pip-build-env-r4fyocus/overlay/lib/python3.11/site-packages/setuptools/build_meta.py",行 341,在 get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
文件 "/tmp/pip-build-env-r4fyocus/overlay/lib/python3.11/site-packages/setuptools/build_meta.py",行 323,在 _get_build_requires
self.run_setup()
文件 "/tmp/pip-build-env-r4fyocus/overlay/lib/python3.11/site-packages/setuptools/build_meta.py",行 338,在 run_setup
exec(code, locals())
文件 "<string>", 行 206,在 <module>
文件 "python3/3.11.1/lib/python3.11/ctypes/__init__.py",行 376,在 __init__
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: python3/3.11.1/lib64:python3/3.11.1/lib:python3/3.11.1/lib64:python3/3.11.1/lib:python3/3.11.1/lib:python3/3.11.1/lib64:/libgssapi_krb5.so: 无法打开共享对象文件:没有那个文件或目录
错误:subprocess-exited-with-error
× 获取构建轮的要求未成功运行。
│ 退出代码:1
╰─> 请参阅上文的输出。
注意:此错误源自子进程,可能与pip无关。
完整命令:my_area/python_tst/my_py/bin/python3 my_area/python_tst/my_py/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpcq6mx3_f
当前工作目录:/tmp/pip-install-l9aynml0/gssapi_40233975a0f24def9d5db604f4e4b0bd
获取构建轮的要求...错误
错误:subprocess-exited-with-error
× 获取构建轮的要求未成功运行。
│ 退出代码:1
╰─> 请参阅上文的输出。
提前感谢。
英文:
I'm trying to install requests-kerberos package pip install requests-kerberos
, but failing on
OSError: ...:/libgssapi_krb5.so: cannot open shared object file: No such file or directory
I have libgssapi_krb5.so in my ../python/lib/. I have tried to add the ../python/lib/ to my LD_LIBRARY_PATH but no success.
I'm using python 3.11.1 version
what can be the issue ? and how come it could not found although LD_LIBRARY_PATH include the lib ?
full er
Installing build dependencies ... done
Running command Getting requirements to build wheel
Traceback (most recent call last):
File "my_area/python_tst/my_py/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "my_area/python_tst/my_py/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "my_area/python_tst/my_py/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-r4fyocus/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-r4fyocus/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-r4fyocus/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in run_setup
exec(code, locals())
File "<string>", line 206, in <module>
File "python3/3.11.1/lib/python3.11/ctypes/__init__.py", line 376, in __init__
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: python3/3.11.1/lib64:python3/3.11.1/lib:python3/3.11.1/lib64:python3/3.11.1/lib:python3/3.11.1/lib:python3/3.11.1/lib64:/libgssapi_krb5.so: cannot open shared object file: No such file or directory
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: my_area/python_tst/my_py/bin/python3 my_area/python_tst/my_py/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpcq6mx3_f
cwd: /tmp/pip-install-l9aynml0/gssapi_40233975a0f24def9d5db604f4e4b0bd
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
Thanks in advance
答案1
得分: 0
关于我,这个错误是我在使用 csh xterm 时遇到的,当我切换到 bash xterm 时,一切都正常了!
英文:
As for me this error I got when I worked on csh xterm, when I moved to bash xterm everything worked!!!
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论