-
-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't install with pip in alpine #31
Comments
Sorry, there is no precompiled wheel for alpine(musl-libc) based Linux for now. You will have to build from source, including upstream projects. |
可以给一点具体的指导吗 |
这个报错不知道如何解决 |
一两句话能说明白我不早就给你编译好了么😂 主要是这个错误:
你得把上游的 curl-impersonate 在 alpine 下编译好,然后放到 LD_LIBRARY_PATH,一般是 /usr/local/lib 里边。 |
还是一样的报错,是命名不对吗 |
应该是有 /usr/local/lib/libcurl-impersonate-chrome.so 这个文件才行 |
编译上游curl-impersonate报错了,暂时解决不了 |
这个倒是好说,上游有 alpine 的 docker 镜像,你直接把 so 复制出来就行了…… 不过 alpine 和 cffi 好像不对付,我试了几下总是编译不过去。 |
curl-impersonate alpine 的 docker 镜像只有amd4,我需要arm64 |
libcurl-impersonate-v0.5.4.aarch64-linux-musl.zip |
镜像选择docker hub 里的python:3.8.16-alpine3.17,libcurl-impersonate放在/usr/local/lib/下,运行
可成功编译,编译结果:curl_cffi-0.5.0-cp37-abi3-linux_aarch64.whl.zip 在其他环境中安装,
安装完成后,我还执行了两部才能正常使用 不知道有没有办法实现安装完就能使用,不再手动操作 |
pypi 上的 wheels 都是用 cibuildwheel 编译出来的,你可以看下 .github/ 下面的配置,理论上来说我把你这个加进去就可以自动编译了,但是我还不太清楚之前我弄的哪里出了问题,你有时间的话可以先看下 .github/ 里的内容,我在 feature/musllinux 分支上做了些尝试,但是 master 上还没试过 |
能确保走了这一行吗https://github.com/yifeikong/curl_cffi/blob/feature/musllinux/prebuild.py#L56 |
有的,你看下这里:https://github.com/yifeikong/curl_cffi/actions/runs/4542689763/jobs/8006427035#step:5:4282 |
不知道原因 |
any updates? |
same issue |
You can extract the alpine .so files from curl-impersonate's docker images. |
Thank your kind advice though, I quit. As far as I concerned, why not run my python script in the host machine using crontab. |
Available since 0.6.3b1. |
the latest version ( 0.4.0 ) can't be installed
My environment:
OS: arm64 docker alpine
Python: 3.8.10
Pip: 23.0.1
here is the error log
The text was updated successfully, but these errors were encountered: