Code Monkey home page Code Monkey logo

Comments (3)

GT-ZhangAcer avatar GT-ZhangAcer commented on June 10, 2024

future的这个报错与future作者的打包方式有较大关系,目前主流的是whl格式而不是egg,在一些环境中可能存在不兼容的情况,具体解决方案可以参考如下 https://www.jianshu.com/p/a7522ca6dec4
图片

在QPT中,可以在requirements.txt文件中指定#$QPT_FLAG$copy标识符,指定该包的安装方式进行解决。

paddleocr
paddlepaddle
future #$QPT_FLAG$copy
其它库...

方便的话尽量也提供一下打包时候的代码or命令,我尝试复现一下这个情况,之前测试这个案例是可以通过的。

from qpt.

MrRabbit2MissCat avatar MrRabbit2MissCat commented on June 10, 2024

run.py

# -*- coding: utf-8 -*-#
from paddleocr import PaddleOCR, draw_ocr

ocr = PaddleOCR(use_angle_cls=True, use_gpu=True, ocr_version='PP-OCRv3', show_log=False)

environment:

conda 23.10.0
python3.9.0

command:

直接cmd输入qpt运行的,
(py39) PS C:\Users\pc\Desktop\code> qpt
→[2023-12-04 15:58:18,346] [DEBUG] | 操作系统类型:Windows
→[2023-12-04 15:58:18,346] [DEBUG] | 操作系统位数:AMD64
D:\software\miniconda3\envs\py39\lib\site-packages_distutils_hack_init_.py:33: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
[项目文件夹]请输入待打包的文件夹路径: C:\Users\pc\Desktop\code\sample_program
[主程序文件]请输入待打包的主要Py脚本文件路径: C:\Users\pc\Desktop\code\sample_program\run.py
[输出目录]请输入打包后文件保存的路径: C:\Users\pc\Desktop\code\out
[Python依赖]请输入requirements.txt文件路径,若无该文件可直接按下[回车键]自动生成该文件 [auto]:

question

跟我用conda有关系吗,用原始的python环境,bug会少点吧

from qpt.

GT-ZhangAcer avatar GT-ZhangAcer commented on June 10, 2024

目测与conda有关

from qpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.