Python 软件打包

Python 软件打包

1、构建虚拟环境:

conda create -n Exep python=3.6

conda activate Exep

2、安装requirements.txt

pip install -r requirements.txt

3、打包

pyinstaller main.py -F

4、得到exe之后

错误1:

Import Error Open CV loader missing configuration file

pyinstaller main.py -F --paths="C:\Users\XXXXX\anaconda3\envs\Exep\Lib\site-packages\cv2"

https://blog.csdn.net/baidu_36499789/article/details/121040442

问题解决;

posted @ 2022-10-31 16:51  bH1pJ  阅读(26)  评论(0编辑  收藏  举报