一、IDE配置解釋器
二、配置pip鏡像 按照軟件包
(參考博文:https://www.jianshu.com/p/fa36fe63badc)
阿里雲 http://mirrors.aliyun.com/pypi/simple/
中國科技大學 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清華大學 https://pypi.tuna.tsinghua.edu.cn/simple/
中國科學技術大學 http://pypi.mirrors.ustc.edu.cn/simple/
【執行命令】pip install paramiko -i http://mirrors.aliyun.com/pypi/simple/
【配置永久生效】全局配置文件 Window系統下,文件夾路徑中輸入 %APPDATA%,若沒有pip目錄創建,並在裏面創建文件 pip.ini,內容如下
index-url = https://pypi.mirrors.ustc.edu.cn/simple/
trusted-host = pypi.mirrors.ustc.edu.cn
三、生產EXE執行文件
【可執行文件生成命令】pyinstaller -F .\EasyLoglizer.py -w
獲取幫助信息:pyinstaller -h
What to generate:
-D, --onedir Create a one-folder bundle containing an executable
-F, --onefile Create a one-file bundled executable.
--specpath DIR Folder to store the generated spec file (default:
-n NAME, --name NAME Name to assign to the bundled app and spec file
(default: first script's basename)
Windows and Mac OS X: do not provide a console window
for standard i/o. On Mac OS X this also triggers
building an OS X .app bundle. On Windows this option