PyCharm適配python解釋器及使用

一、IDE配置解釋器

二、配置pip鏡像 按照軟件包

(參考博文:https://www.jianshu.com/p/fa36fe63badc)

pip國內的一些鏡像

阿里雲 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,內容如下

[global]

timeout = 6000

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

                        (default)

  -F, --onefile         Create a one-file bundled executable.

  --specpath DIR        Folder to store the generated spec file (default:

                        current directory)

  -n NAME, --name NAME  Name to assign to the bundled app and spec file

                        (default: first script's basename)

-w, --windowed, --noconsole

                        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

                        will be set if the first script is a '.pyw' file. This

                        option is ignored in *NIX systems.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章