每次我尝试在项目中安装pip带有 GRPCIO 作为依赖项的包时,.direnv由于我的架构是 arm64,我都会遇到构建失败。在等待 GRPCIO 工作人员发布更新时,我该如何解决这个问题?
Using cached grpcio-1.34.0.tar.gz (21.0 MB)
ERROR: Command errored out with exit status 1:
command: /Users/yoav/Library/Caches/pypoetry/virtualenvs/orca-g6p4a6cZ-py3.8/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/jj/r3j0p91s2qgdpcpf5ptqr9qm0000gn/T/pip-install-n05vw0u0/grpcio_103d947f24954cde8b8a019b4c9f88fe/setup.py'"'"'; __file__='"'"'/private/var/folders/jj/r3j0p91s2qgdpcpf5ptqr9qm0000gn/T/pip-install-n05vw0u0/grpcio_103d947f24954cde8b8a019b4c9f88fe/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/jj/r3j0p91s2qgdpcpf5ptqr9qm0000gn/T/pip-pip-egg-info-z41yqiw6
cwd: /private/var/folders/jj/r3j0p91s2qgdpcpf5ptqr9qm0000gn/T/pip-install-n05vw0u0/grpcio_103d947f24954cde8b8a019b4c9f88fe/
Complete output (10 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/jj/r3j0p91s2qgdpcpf5ptqr9qm0000gn/T/pip-install-n05vw0u0/grpcio_103d947f24954cde8b8a019b4c9f88fe/setup.py", line 359, in <module>
if mac_target and (pkg_resources.parse_version(mac_target) <
File "/Users/yoav/Library/Caches/pypoetry/virtualenvs/orca-g6p4a6cZ-py3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 113, in parse_version
return packaging.version.Version(v)
File "/Users/yoav/Library/Caches/pypoetry/virtualenvs/orca-g6p4a6cZ-py3.8/lib/python3.8/site-packages/pkg_resources/_vendor/packaging/version.py", …Run Code Online (Sandbox Code Playgroud) 我在 Mac (12.3.1) 上使用 Docker 的 Alpine Linux 并尝试运行pip3 install grpcio但此命令总是失败。
我在这里尝试了信息,但到目前为止没有任何效果。
\n无法使用 pip install grpcio 安装 grpcio --> 升级到最新版setuptools\n https://github.com/grpc/grpc/issues/24390 --> 运行export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1并export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
步
\nDockerfile
\nFROM alpine:latest\nCOPY src /root/src # Please think this is empty. I don\'t use any files in this directory until now.\nWORKDIR /root/src\n\nRUN set -x \\\n && apk update \\\n && apk add build-base \\\n && apk …Run Code Online (Sandbox Code Playgroud) 我想使用 pip(版本 1.35)安装 grpcio。\n但是我收到此错误:
\nnote: This error originates from a subprocess, and is likely not a problem with pip.\nerror: legacy-install-failure\n\n\xc3\x97 Encountered error while trying to install package.\n\xe2\x95\xb0\xe2\x94\x80> grpcio\nRun Code Online (Sandbox Code Playgroud)\n我尝试安装 python-dev 或wheel,但没有成功。
\n我的Python版本= 3.10
\n乌班图 = 22.04
\n我有一个简单的Python 2.7Google App Engine 应用程序。我将PyCharmProfessional IDE 设置为使用模拟器调试或运行应用程序Datastore,并收到以下错误:
`Cannot use the Cloud Datastore Emulator because the packaged grpcio is incompatible to this system. Please install grpcio using pip`
Run Code Online (Sandbox Code Playgroud)
我尝试使用不做任何更改来安装此软件包( grpcio)pip
PyCharm 运行以下命令来启动应用程序:
/usr/bin/python2.7 /home/netanel/Desktop/google-cloud-sdk/google-cloud-sdk/bin/dev_appserver.py --port 8080 --host localhost --clear_datastore=yes app.yaml --support_datastore_emulator=True
如果我从终端窗口运行此命令,它运行良好
grpcio ×4
pip ×3
python ×2
alpine-linux ×1
apple-m1 ×1
direnv ×1
django ×1
pycharm ×1
python-2.7 ×1