我们的代码完成后,为了防止代码被盗,需要对代码进行打包,这里我们就需要制作exe程序。
-
安装第三方模块 pyinstaller,在Dos环境中执行
pip install pyinstaller
命令,在PyCharm中可以直接进入。(再次安装就会告诉你已安装Requirement already satisfied:)
Linux需要进入shell环境中操作,命令为pip3 install pyinstaller
。
下载的速度会很慢,而且会因为过于太慢而导致安装失败,所以我们指定豆瓣镜像源去安装pip install pyinstaller -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
(’–trusted-host pypi.douban.com’必须添加信任选项) -
进入阿里巴巴矢量图标库找到自己想要的图标下载即可。