Skip to content

自动采集政府事业编考试发布消息,发送邮件通知

Notifications You must be signed in to change notification settings

eachmawzw/shiyebian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1、安装python3

2、安装pipenv

注:如果安装太慢,可以更换国内源(如更换为阿里源:pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

$  python3 -m pip install pipenv

3、进入到项目目录,安装依赖

注:如果系统的python版本不是3.7,修改 Pipfile 文件,将 python_version = "3.10.2" 修改为系统安装的python版本,并删除Pipfile.lock文件

$  pipenv install 

4、启动项目

注:在windows环境,需要先进入visualenv (命令:pipenv shell,退出命令为exit

$  python3 main.py

5、打包为可执行文件

$  python3 -m pip install pyinstaller
$  pyinstaller -F main.py

注:如果打包后,运行可执行文件提示找不到依赖,可能是打包方式有误,将依赖目录加入打包命令参数中

$ pyinstaller main.py -F -p ~/.local/share/virtualenvs/shiyebian-tqFfELCF/lib/python3.7/site-packages

About

自动采集政府事业编考试发布消息,发送邮件通知

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published