英文:
Grpc requiring glibc 2.33 debian buster on arm cpu
问题
以下是代码部分的翻译:
Traceback (most recent call last):
File "/home/steven/GassistPi/src/main.py", line 25, in <module>
from google.cloud import speech
File "/home/steven/env/lib/python3.7/site-packages/google/cloud/speech.py", line 19, in <module>
from google.cloud.speech_v1 import SpeechClient
File "/home/steven/env/lib/python3.7/site-packages/google/cloud/speech_v1/__init__.py", line 17, in <module>
from google.cloud.speech_v1.gapic import speech_client
File "/home/steven/env/lib/python3.7/site-packages/google/cloud/speech_v1/gapic/speech_client.py", line 22, in <module>
import google.api_core.gapic_v1.client_info
File "/home/steven/env/lib/python3.7/site-packages/google/api_core/gapic_v1/__init__.py", line 16, in <module>
from google.api_core.gapic_v1 import config
File "/home/steven/env/lib/python3.7/site-packages/google/api_core/gapic_v1/config.py", line 23, in <module>
import grpc
File "/home/steven/env/lib/python3.7/site-packages/grpc/__init__.py", line 22, in <module>
from grpc import _compression
File "/home/steven/env/lib/python3.7/site-packages/grpc/_compression.py", line 15, in <module>
from grpc._cython import cygrpc
ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found (required by /home/steven/env/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-arm-linux-gnueabihf.so)
我正在尝试设置这个项目GassistPi,但是当我运行主要的Python脚本时,出现了上面的错误。
Debian Buster默认版本是2.28。我正在一个Python虚拟环境中运行它。有没有办法告诉Python虚拟环境使用我已经在不同文件夹中编译和安装的glibc?
我通过运行测试脚本来测试glibc的安装,针对我的Hello World C程序。它可以正常工作。
英文:
Traceback (most recent call last):
File "/home/steven/GassistPi/src/main.py", line 25, in <module>
from google.cloud import speech
File "/home/steven/env/lib/python3.7/site-packages/google/cloud/speech.py", line 19, in <module>
from google.cloud.speech_v1 import SpeechClient
File "/home/steven/env/lib/python3.7/site-packages/google/cloud/speech_v1/__init__.py", line 17, in <module>
from google.cloud.speech_v1.gapic import speech_client
File "/home/steven/env/lib/python3.7/site-packages/google/cloud/speech_v1/gapic/speech_client.py", line 22, in <module>
import google.api_core.gapic_v1.client_info
File "/home/steven/env/lib/python3.7/site-packages/google/api_core/gapic_v1/__init__.py", line 16, in <module>
from google.api_core.gapic_v1 import config
File "/home/steven/env/lib/python3.7/site-packages/google/api_core/gapic_v1/config.py", line 23, in <module>
import grpc
File "/home/steven/env/lib/python3.7/site-packages/grpc/__init__.py", line 22, in <module>
from grpc import _compression
File "/home/steven/env/lib/python3.7/site-packages/grpc/_compression.py", line 15, in <module>
from grpc._cython import cygrpc
ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found (required by /home/steven/env/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-arm-linux-gnueabihf.so)
I am trying to setup this project GassistPi but I am getting the error above when I run the main python script.
The default version that came with debian buster is 2.28. I am running this in a python virtual envirorment. Is there a way I can tell the python virtual enviroment to use the glibc I have compiled and installed in a different folder?
I have tested the glibc install by running the testrun script againest my hello world c program. It works.
答案1
得分: 0
没有。详细答案在这里。
英文:
> Is there a way I can tell the python virtual enviroment to use the glibc I have compiled and installed in a different folder?
No. Detailed answer here.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论