Skip to content
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

青龙无法安装python3的pycryptodome依赖 #1645

Closed
yeli008 opened this issue Oct 7, 2022 · 19 comments
Closed

青龙无法安装python3的pycryptodome依赖 #1645

yeli008 opened this issue Oct 7, 2022 · 19 comments

Comments

@yeli008
Copy link

yeli008 commented Oct 7, 2022

Qinglong version

V2.14.7

Steps to reproduce

Snipaste_2022-10-07_11-36-28
请见附图。

What is expected?

我要运行一个脚本必须要有这个依赖pycryptodome,想要安装。

What is actually happening?

无法安装这个python3 的 pycryptodome依赖

System Info

No response

Any additional comments?

No response

@sdhzwc
Copy link

sdhzwc commented Oct 7, 2022

正常 这是由于apline简版系统导致 很多依赖也是无法下载 例如cx_oracle 我遇到的

@whyour
Copy link
Owner

whyour commented Oct 9, 2022

alpine-sdk
autoconf 
automake
libtool

linux 里把这几个依赖装上

@whyour whyour closed this as completed Oct 9, 2022
@whyour
Copy link
Owner

whyour commented Oct 9, 2022

gcc应该sdk会自动装,前四个应该就行了

@whyour whyour pinned this issue Nov 1, 2022
@2331892928
Copy link

无法构建,你的库不支持python3.10

@whyour
Copy link
Owner

whyour commented Nov 10, 2022

canvas 安装失败,linux 添加如下依赖

build-base
pkgconfig 
pixman-dev 
cairo-dev 
pango-dev 
make 
g++

@whyour
Copy link
Owner

whyour commented Feb 10, 2023

cryptg 安装失败,linux 添加如下依赖

rust
cargo

@demostars
Copy link

demostars commented Feb 17, 2023

@whyour 感谢作者,我遇到类似的问题,无法pip install ddddocr。

原因如下:

The conflict is caused by:
    ddddocr 1.4.7 depends on onnxruntime
    ddddocr 1.4.6 depends on onnxruntime
    ddddocr 1.4.5 depends on onnxruntime
    ddddocr 1.0.6 depends on onnxruntime

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
root@qinglong:/ql/data/scripts/gqbre_emby-server-checkin $pip install onnxruntime
Looking in indexes: https://pypi.doubanio.com/simple/
ERROR: Could not find a version that satisfies the requirement onnxruntime (from versions: none)
ERROR: No matching distribution found for onnxruntime

我尝试fork 修改dockerfile 为基于python-slim的版本(这个版本可以安装),暂时没有成功发布到DockerHub上,因此真诚建议作者是否可以新建一个 基于 python-slim的版本的镜像,用于性能更好的,不那么在乎镜像体积的设备使用。以下是我修改的代码,仅供参考。

#  修改记录:
# 将 python:3.10-alpine 替换成 python:3.10-slim
# 将 apk 命令替换成 apt-get
# 尚未替换国内镜像

FROM python:3.10-slim as builder 
COPY package.json .npmrc pnpm-lock.yaml /tmp/build/
RUN set -x \
    && apt-get update \
    && apt-get install -y --no-install-recommends nodejs npm git \
    && npm i -g pnpm \
    && cd /tmp/build \
    && pnpm install --prod

FROM python:3.10-slim

ARG QL_MAINTAINER="whyour"
LABEL maintainer="${QL_MAINTAINER}"
ARG QL_URL=https://github.com/${QL_MAINTAINER}/qinglong.git
ARG QL_BRANCH=develop

ENV PNPM_HOME=/root/.local/share/pnpm \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.local/share/pnpm:/root/.local/share/pnpm/global/5/node_modules:$PNPM_HOME \
    NODE_PATH=/usr/local/bin:/usr/local/pnpm-global/5/node_modules:/usr/local/lib/node_modules:/root/.local/share/pnpm/global/5/node_modules \
    LANG=zh_CN.UTF-8 \
    SHELL=/bin/bash \
    PS1="\u@\h:\w \$ " \
    QL_DIR=/ql \
    QL_BRANCH=${QL_BRANCH}

RUN set -x \
    && apt-get update -f \
    && apt-get upgrade -y \
    && apt-get --no-install-recommends -y install bash \
                                                  coreutils \
                                                  moreutils \
                                                  git \
                                                  curl \
                                                  wget \
                                                  tzdata \
                                                  perl \
                                                  openssl \
                                                  nginx \
                                                  nodejs \
                                                  jq \
                                                  openssh-client \
                                                  npm \
    && rm -rf /var/cache/apt/* \
    && apt-get update \
    && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone \
    && git config --global user.email "qinglong@@users.noreply.github.com" \
    && git config --global user.name "qinglong" \
    && git config --global http.postBuffer 524288000 \
    && npm install -g pnpm \
    && pnpm add -g pm2 ts-node typescript tslib \
    && rm -rf /root/.pnpm-store \
    && rm -rf /root/.local/share/pnpm/store \
    && rm -rf /root/.cache \
    && rm -rf /root/.npm

ARG SOURCE_COMMIT
RUN git clone -b ${QL_BRANCH} ${QL_URL} ${QL_DIR} \
    && cd ${QL_DIR} \
    && cp -f .env.example .env \
    && chmod 777 ${QL_DIR}/shell/*.sh \
    && chmod 777 ${QL_DIR}/docker/*.sh \
    && git clone -b ${QL_BRANCH} https://github.com/${QL_MAINTAINER}/qinglong-static.git /static \
    && mkdir -p ${QL_DIR}/static \
    && cp -rf /static/* ${QL_DIR}/static \
    && rm -rf /static

COPY --from=builder /tmp/build/node_modules/. /ql/node_modules/

WORKDIR ${QL_DIR}
    
ENTRYPOINT ["./docker/docker-entrypoint.sh"]

@whyour
Copy link
Owner

whyour commented Feb 23, 2023

@whyour 感谢作者,我遇到类似的问题,无法pip install ddddocr。

原因如下:

The conflict is caused by:
    ddddocr 1.4.7 depends on onnxruntime
    ddddocr 1.4.6 depends on onnxruntime
    ddddocr 1.4.5 depends on onnxruntime
    ddddocr 1.0.6 depends on onnxruntime

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
root@qinglong:/ql/data/scripts/gqbre_emby-server-checkin $pip install onnxruntime
Looking in indexes: https://pypi.doubanio.com/simple/
ERROR: Could not find a version that satisfies the requirement onnxruntime (from versions: none)
ERROR: No matching distribution found for onnxruntime

我尝试fork 修改dockerfile 为基于python-slim的版本(这个版本可以安装),暂时没有成功发布到DockerHub上,因此真诚建议作者是否可以新建一个 基于 python-slim的版本的镜像,用于性能更好的,不那么在乎镜像体积的设备使用。以下是我修改的代码,仅供参考。

#  修改记录:
# 将 python:3.10-alpine 替换成 python:3.10-slim
# 将 apk 命令替换成 apt-get
# 尚未替换国内镜像

FROM python:3.10-slim as builder 
COPY package.json .npmrc pnpm-lock.yaml /tmp/build/
RUN set -x \
    && apt-get update \
    && apt-get install -y --no-install-recommends nodejs npm git \
    && npm i -g pnpm \
    && cd /tmp/build \
    && pnpm install --prod

FROM python:3.10-slim

ARG QL_MAINTAINER="whyour"
LABEL maintainer="${QL_MAINTAINER}"
ARG QL_URL=https://github.com/${QL_MAINTAINER}/qinglong.git
ARG QL_BRANCH=develop

ENV PNPM_HOME=/root/.local/share/pnpm \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.local/share/pnpm:/root/.local/share/pnpm/global/5/node_modules:$PNPM_HOME \
    NODE_PATH=/usr/local/bin:/usr/local/pnpm-global/5/node_modules:/usr/local/lib/node_modules:/root/.local/share/pnpm/global/5/node_modules \
    LANG=zh_CN.UTF-8 \
    SHELL=/bin/bash \
    PS1="\u@\h:\w \$ " \
    QL_DIR=/ql \
    QL_BRANCH=${QL_BRANCH}

RUN set -x \
    && apt-get update -f \
    && apt-get upgrade -y \
    && apt-get --no-install-recommends -y install bash \
                                                  coreutils \
                                                  moreutils \
                                                  git \
                                                  curl \
                                                  wget \
                                                  tzdata \
                                                  perl \
                                                  openssl \
                                                  nginx \
                                                  nodejs \
                                                  jq \
                                                  openssh-client \
                                                  npm \
    && rm -rf /var/cache/apt/* \
    && apt-get update \
    && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone \
    && git config --global user.email "qinglong@@users.noreply.github.com" \
    && git config --global user.name "qinglong" \
    && git config --global http.postBuffer 524288000 \
    && npm install -g pnpm \
    && pnpm add -g pm2 ts-node typescript tslib \
    && rm -rf /root/.pnpm-store \
    && rm -rf /root/.local/share/pnpm/store \
    && rm -rf /root/.cache \
    && rm -rf /root/.npm

ARG SOURCE_COMMIT
RUN git clone -b ${QL_BRANCH} ${QL_URL} ${QL_DIR} \
    && cd ${QL_DIR} \
    && cp -f .env.example .env \
    && chmod 777 ${QL_DIR}/shell/*.sh \
    && chmod 777 ${QL_DIR}/docker/*.sh \
    && git clone -b ${QL_BRANCH} https://github.com/${QL_MAINTAINER}/qinglong-static.git /static \
    && mkdir -p ${QL_DIR}/static \
    && cp -rf /static/* ${QL_DIR}/static \
    && rm -rf /static

COPY --from=builder /tmp/build/node_modules/. /ql/node_modules/

WORKDIR ${QL_DIR}
    
ENTRYPOINT ["./docker/docker-entrypoint.sh"]

依赖管理也需要改下,如果有好的自动化 slim 的镜像,欢迎提 PR
另外,你这镜像build完多大呢

Repository owner deleted a comment from vtumi Feb 23, 2023
@demostars
Copy link

多谢作者回复,实不相瞒,我在Windows 下并没有成功 Build 出我想要的镜像。我目前没有排查出问题出在哪里,我也看了下作者你的 Github Action中关于docker build & push 的部分,static 静态资源也是必须项。

我对于Dockerfile 和 Github Action 都三脚猫,暂时没有完整的解决方案,所以无法PR。

@sailor613
Copy link

@whyour 感谢作者,我遇到类似的问题,无法pip install ddddocr。
原因如下:

The conflict is caused by:
    ddddocr 1.4.7 depends on onnxruntime
    ddddocr 1.4.6 depends on onnxruntime
    ddddocr 1.4.5 depends on onnxruntime
    ddddocr 1.0.6 depends on onnxruntime

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
root@qinglong:/ql/data/scripts/gqbre_emby-server-checkin $pip install onnxruntime
Looking in indexes: https://pypi.doubanio.com/simple/
ERROR: Could not find a version that satisfies the requirement onnxruntime (from versions: none)
ERROR: No matching distribution found for onnxruntime

我尝试fork 修改dockerfile 为基于python-slim的版本(这个版本可以安装),暂时没有成功发布到DockerHub上,因此真诚建议作者是否可以新建一个 基于 python-slim的版本的镜像,用于性能更好的,不那么在乎镜像体积的设备使用。以下是我修改的代码,仅供参考。

#  修改记录:
# 将 python:3.10-alpine 替换成 python:3.10-slim
# 将 apk 命令替换成 apt-get
# 尚未替换国内镜像

FROM python:3.10-slim as builder 
COPY package.json .npmrc pnpm-lock.yaml /tmp/build/
RUN set -x \
    && apt-get update \
    && apt-get install -y --no-install-recommends nodejs npm git \
    && npm i -g pnpm \
    && cd /tmp/build \
    && pnpm install --prod

FROM python:3.10-slim

ARG QL_MAINTAINER="whyour"
LABEL maintainer="${QL_MAINTAINER}"
ARG QL_URL=https://github.com/${QL_MAINTAINER}/qinglong.git
ARG QL_BRANCH=develop

ENV PNPM_HOME=/root/.local/share/pnpm \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.local/share/pnpm:/root/.local/share/pnpm/global/5/node_modules:$PNPM_HOME \
    NODE_PATH=/usr/local/bin:/usr/local/pnpm-global/5/node_modules:/usr/local/lib/node_modules:/root/.local/share/pnpm/global/5/node_modules \
    LANG=zh_CN.UTF-8 \
    SHELL=/bin/bash \
    PS1="\u@\h:\w \$ " \
    QL_DIR=/ql \
    QL_BRANCH=${QL_BRANCH}

RUN set -x \
    && apt-get update -f \
    && apt-get upgrade -y \
    && apt-get --no-install-recommends -y install bash \
                                                  coreutils \
                                                  moreutils \
                                                  git \
                                                  curl \
                                                  wget \
                                                  tzdata \
                                                  perl \
                                                  openssl \
                                                  nginx \
                                                  nodejs \
                                                  jq \
                                                  openssh-client \
                                                  npm \
    && rm -rf /var/cache/apt/* \
    && apt-get update \
    && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone \
    && git config --global user.email "qinglong@@users.noreply.github.com" \
    && git config --global user.name "qinglong" \
    && git config --global http.postBuffer 524288000 \
    && npm install -g pnpm \
    && pnpm add -g pm2 ts-node typescript tslib \
    && rm -rf /root/.pnpm-store \
    && rm -rf /root/.local/share/pnpm/store \
    && rm -rf /root/.cache \
    && rm -rf /root/.npm

ARG SOURCE_COMMIT
RUN git clone -b ${QL_BRANCH} ${QL_URL} ${QL_DIR} \
    && cd ${QL_DIR} \
    && cp -f .env.example .env \
    && chmod 777 ${QL_DIR}/shell/*.sh \
    && chmod 777 ${QL_DIR}/docker/*.sh \
    && git clone -b ${QL_BRANCH} https://github.com/${QL_MAINTAINER}/qinglong-static.git /static \
    && mkdir -p ${QL_DIR}/static \
    && cp -rf /static/* ${QL_DIR}/static \
    && rm -rf /static

COPY --from=builder /tmp/build/node_modules/. /ql/node_modules/

WORKDIR ${QL_DIR}
    
ENTRYPOINT ["./docker/docker-entrypoint.sh"]

依赖管理也需要改下,如果有好的自动化 slim 的镜像,欢迎提 PR 另外,你这镜像build完多大呢

我也遇到了,后面通过ddddocr直接搭了个api解决的,反正都是在docker里面运行 也不算麻烦。

@demostars
Copy link

@whyour 感谢作者,我遇到类似的问题,无法pip install ddddocr。
原因如下:

The conflict is caused by:
    ddddocr 1.4.7 depends on onnxruntime
    ddddocr 1.4.6 depends on onnxruntime
    ddddocr 1.4.5 depends on onnxruntime
    ddddocr 1.0.6 depends on onnxruntime

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
root@qinglong:/ql/data/scripts/gqbre_emby-server-checkin $pip install onnxruntime
Looking in indexes: https://pypi.doubanio.com/simple/
ERROR: Could not find a version that satisfies the requirement onnxruntime (from versions: none)
ERROR: No matching distribution found for onnxruntime

我尝试fork 修改dockerfile 为基于python-slim的版本(这个版本可以安装),暂时没有成功发布到DockerHub上,因此真诚建议作者是否可以新建一个 基于 python-slim的版本的镜像,用于性能更好的,不那么在乎镜像体积的设备使用。以下是我修改的代码,仅供参考。

#  修改记录:
# 将 python:3.10-alpine 替换成 python:3.10-slim
# 将 apk 命令替换成 apt-get
# 尚未替换国内镜像

FROM python:3.10-slim as builder 
COPY package.json .npmrc pnpm-lock.yaml /tmp/build/
RUN set -x \
    && apt-get update \
    && apt-get install -y --no-install-recommends nodejs npm git \
    && npm i -g pnpm \
    && cd /tmp/build \
    && pnpm install --prod

FROM python:3.10-slim

ARG QL_MAINTAINER="whyour"
LABEL maintainer="${QL_MAINTAINER}"
ARG QL_URL=https://github.com/${QL_MAINTAINER}/qinglong.git
ARG QL_BRANCH=develop

ENV PNPM_HOME=/root/.local/share/pnpm \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.local/share/pnpm:/root/.local/share/pnpm/global/5/node_modules:$PNPM_HOME \
    NODE_PATH=/usr/local/bin:/usr/local/pnpm-global/5/node_modules:/usr/local/lib/node_modules:/root/.local/share/pnpm/global/5/node_modules \
    LANG=zh_CN.UTF-8 \
    SHELL=/bin/bash \
    PS1="\u@\h:\w \$ " \
    QL_DIR=/ql \
    QL_BRANCH=${QL_BRANCH}

RUN set -x \
    && apt-get update -f \
    && apt-get upgrade -y \
    && apt-get --no-install-recommends -y install bash \
                                                  coreutils \
                                                  moreutils \
                                                  git \
                                                  curl \
                                                  wget \
                                                  tzdata \
                                                  perl \
                                                  openssl \
                                                  nginx \
                                                  nodejs \
                                                  jq \
                                                  openssh-client \
                                                  npm \
    && rm -rf /var/cache/apt/* \
    && apt-get update \
    && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone \
    && git config --global user.email "qinglong@@users.noreply.github.com" \
    && git config --global user.name "qinglong" \
    && git config --global http.postBuffer 524288000 \
    && npm install -g pnpm \
    && pnpm add -g pm2 ts-node typescript tslib \
    && rm -rf /root/.pnpm-store \
    && rm -rf /root/.local/share/pnpm/store \
    && rm -rf /root/.cache \
    && rm -rf /root/.npm

ARG SOURCE_COMMIT
RUN git clone -b ${QL_BRANCH} ${QL_URL} ${QL_DIR} \
    && cd ${QL_DIR} \
    && cp -f .env.example .env \
    && chmod 777 ${QL_DIR}/shell/*.sh \
    && chmod 777 ${QL_DIR}/docker/*.sh \
    && git clone -b ${QL_BRANCH} https://github.com/${QL_MAINTAINER}/qinglong-static.git /static \
    && mkdir -p ${QL_DIR}/static \
    && cp -rf /static/* ${QL_DIR}/static \
    && rm -rf /static

COPY --from=builder /tmp/build/node_modules/. /ql/node_modules/

WORKDIR ${QL_DIR}
    
ENTRYPOINT ["./docker/docker-entrypoint.sh"]

依赖管理也需要改下,如果有好的自动化 slim 的镜像,欢迎提 PR 另外,你这镜像build完多大呢

我也遇到了,后面通过ddddocr直接搭了个api解决的,反正都是在docker里面运行 也不算麻烦。

我重新做了个镜像,内置了从源码编译的DDDDOCR,但是,我用telegram bot,好像也有问题,ssl 的错啦,gcc的错啦。。我还在研究怎么把原是镜像改成slim。

@Evilmass
Copy link

Evilmass commented Jul 17, 2023

遇到类似问题。

在容器内部安装 playwright 提示平台不支持。
容器内安装失败

容器外部能正常安装。
容器外安装成功

YusukeIwaki/playwright-python-remote 找到解决办法:

FROM python:3.9-alpine

RUN apk add --no-cache --virtual .install-deps build-base curl git \
    && pip install git+https://github.com/microsoft/playwright-python@v1.20.0 \
    && pip install git+https://github.com/YusukeIwaki/playwright-python-remote \
    && apk del .install-deps

或者在外部搭建 playwright-server,内部使用 playwright_remote 连接 websocket 后调用。

from playwright_remote.sync_api import sync_playwright_remote

with sync_playwright_remote('ws://127.0.0.1:8080/ws') as playwright:
  with playwright.chromium.launch() as browser:
    page = browser.new_page()
    page.goto('https://github.com/YusukeIwaki')
    page.screenshot(path='YusukeIwaki.png')

image

@whyour
Copy link
Owner

whyour commented Jul 18, 2023

遇到类似问题。

在容器内部安装 playwright 提示平台不支持。 容器内安装失败

容器外部能正常安装。 容器外安装成功

YusukeIwaki/playwright-python-remote 找到解决办法:

FROM python:3.9-alpine

RUN apk add --no-cache --virtual .install-deps build-base curl git \
    && pip install git+https://github.com/microsoft/playwright-python@v1.20.0 \
    && pip install git+https://github.com/YusukeIwaki/playwright-python-remote \
    && apk del .install-deps

或者在外部搭建 playwright-server,内部使用 playwright_remote 连接 websocket 后调用。

from playwright_remote.sync_api import sync_playwright_remote

with sync_playwright_remote('ws://127.0.0.1:8080/ws') as playwright:
  with playwright.chromium.launch() as browser:
    page = browser.new_page()
    page.goto('https://github.com/YusukeIwaki')
    page.screenshot(path='YusukeIwaki.png')

image

可以使用 whyour/qinglong:debian 镜像

@Evilmass
Copy link

遇到类似问题。
在容器内部安装 playwright 提示平台不支持。 容器内安装失败
容器外部能正常安装。 容器外安装成功
YusukeIwaki/playwright-python-remote 找到解决办法:

FROM python:3.9-alpine

RUN apk add --no-cache --virtual .install-deps build-base curl git \
    && pip install git+https://github.com/microsoft/playwright-python@v1.20.0 \
    && pip install git+https://github.com/YusukeIwaki/playwright-python-remote \
    && apk del .install-deps

或者在外部搭建 playwright-server,内部使用 playwright_remote 连接 websocket 后调用。

from playwright_remote.sync_api import sync_playwright_remote

with sync_playwright_remote('ws://127.0.0.1:8080/ws') as playwright:
  with playwright.chromium.launch() as browser:
    page = browser.new_page()
    page.goto('https://github.com/YusukeIwaki')
    page.screenshot(path='YusukeIwaki.png')

image

可以使用 whyour/qinglong:debian 镜像

谢谢,正头疼怎么改 alpine 的 dockerfile 呢。

@Turkeyer
Copy link

Turkeyer commented Mar 4, 2024

canvas 安装失败,linux 添加如下依赖

build-base
pkgconfig 
pixman-dev 
cairo-dev 
pango-dev 
make 
g++

无用。这些依赖安装了,但那个还是不行

@tianjiao96176
Copy link

canvas 安装失败,linux 添加如下依赖

build-base
pkgconfig 
pixman-dev 
cairo-dev 
pango-dev 
make 
g++

无用。这些依赖安装了,但那个还是不行

添加了 还是安装不成功日志 - canvas
开始安装依赖 canvas,开始时间 2024-03-21 10:47:57

ERROR: Ignored the following versions that require a different python version: 0.1.4 Requires-Python >=3.12,<4.0
ERROR: Could not find a version that satisfies the requirement canvas (from versions: none)
ERROR: No matching distribution found for canvas

@Blackcf
Copy link

Blackcf commented Apr 10, 2024

canvas 安装失败,linux 添加如下依赖

build-base
pkgconfig 
pixman-dev 
cairo-dev 
pango-dev 
make 
g++

无用。这些依赖安装了,但那个还是不行

添加了 还是安装不成功日志 - canvas 开始安装依赖 canvas,开始时间 2024-03-21 10:47:57

ERROR: Ignored the following versions that require a different python version: 0.1.4 Requires-Python >=3.12,<4.0 ERROR: Could not find a version that satisfies the requirement canvas (from versions: none) ERROR: No matching distribution found for canvas

你不会看日志吗,python下的canvas支持python版本>=3.12,你的版本低,当然报错

@tasty007
Copy link

canvas 安装失败,linux 添加如下依赖

build-base
pkgconfig 
pixman-dev 
cairo-dev 
pango-dev 
make 
g++

无用。这些依赖安装了,但那个还是不行

添加了 还是安装不成功日志 - canvas 开始安装依赖 canvas,开始时间 2024-03-21 10:47:57
ERROR: Ignored the following versions that require a different python version: 0.1.4 Requires-Python >=3.12,<4.0 ERROR: Could not find a version that satisfies the requirement canvas (from versions: none) ERROR: No matching distribution found for canvas

你不会看日志吗,python下的canvas支持python版本>=3.12,你的版本低,当然报错

大佬有什么解决办法吗...

@shinesky
Copy link

canvas 安装失败,linux 添加如下依赖

build-base
pkgconfig 
pixman-dev 
cairo-dev 
pango-dev 
make 
g++

这几个依赖装完后还是不行,canvas依然安装失败,提示如下:
ERROR: No matching distribution found for canvas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests