Comments (3)
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.
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.
目测与conda有关
from qpt.
Related Issues (20)
- TypeError: cli() got an unexpected keyword argument 'python_version' HOT 3
- [Report]不存在离线包时listdir报错 HOT 2
- [Report]→打包好的程序文件无法运行← HOT 3
- [TWB]通过sub_modules才能添加fastdeploy HOT 1
- [TWB]请问qpt打包cuda和avx的原理是什么 HOT 2
- [Report]→请在此处填写Issue标题←ModuleNotFoundError: No module named 'cv2' HOT 2
- module 'mil' has no attribute 'MIL_ID' HOT 5
- OPT-memory.py 文件显示错误 HOT 1
- 打包exe后,出现FileNotFoundError: [Errno 2] No such file or directory: './12.ui' HOT 1
- 已安装模块 导入时报错 HOT 1
- 已安装模块 运行时报错 HOT 1
- 打包项目后出现没有cuda的问题←
- 我想这可不可以将我们自己的源码进行一个加密处理[TWB] HOT 1
- [Report]→运行DEBUG的.exe文件报错← HOT 7
- [Report]→qpt_lazy_dependency.txt' does not exist.← HOT 1
- [Report]打包后使用langchain及代理报错 HOT 2
- V1.0b5 在哪里找,是开发分支吗 HOT 4
- python setup.py install 报错 HOT 1
- ./Python/python.exe: can't open file 'resources/main.py': [Errno 2] No such file or directory HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qpt.