使用pycharm打包python程序_PyCharm下如何打包程序成exe可执行文件

1、首先,打开自己要发布的工程

2、点击底部的【Terminal】打开终端,中输入命令pip install pyinstaller后回车,进行安装

3、输入命令 pyinstaller,回车显示安装成功

4、pyinstaller -F -w alien_invasion.py封装

遇到报错信息(原报错找不到了,网上找了类似的):

Traceback (most recent call last):

File "C:\Users\user\Desktop\untitled1\venv\Scripts\pyinstaller-script.py", line 11, in 

load_entry_point('PyInstaller==3.4', 'console_scripts', 'pyinstaller')()

File "C:\Users\user\Desktop\untitled1\venv\lib\site-packages\PyInstaller\__main__.py", line 111, in run

run_build(pyi_config, spec_file, **vars(args))

File "C:\Users\user\Desktop\untitled1\venv\lib\site-packages\PyInstaller\__main__.py", line 63, in run_build

PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)

File "C:\Users

你可能感兴趣的:(使用pycharm打包python程序_PyCharm下如何打包程序成exe可执行文件)