@@ -10,17 +10,19 @@ exportQuestionCount 导出题库or卷库各课程的试卷数量和各课程的
+安装依赖:
+pip install bs4
+pip install requests
+pip install pdfkit
+
Python安装打包组件:
pip install pyinstaller
-执行打包方式1(注意环境变量路径问题):
-pyinstaller --onefile main.py
-
-执行打包方式2:
+执行打包:
cd exportexamdetail
pyinstaller main.spec
-注意:main.spec文件内的路径是否正确
+注意:main.spec文件内的路径是否正确、环境变量路径问题
https://www.runoob.com/python/python-tutorial.html
@@ -3,8 +3,8 @@
block_cipher = None
-a = Analysis(['D:\\mine\\myprojects\\_qmth\\sources\\python\\Test-Tools\\exportexamdetail\\main.py'],
- pathex=['C:\\Users\\deason\\AppData\\Local\\Programs\\Python\\Python38\\Scripts'],
+a = Analysis(['D:/mine/myprojects/_qmth/sources/python/Test-Tools/exportexamdetail/main.py'],
+ pathex=['D:/mine/mytools/jdks/python38/Scripts'],
binaries=[],
datas=[('template','template'),('wkhtmltopdf','wkhtmltopdf')],
hiddenimports=[],