python_安装配置与打包发布

1.Python安装

https://www.python.org/downloads/

官网下载python安装文件 安装时记得勾选add path   

 

2.VS2015配置

Visual Studio里面有时不能自动识别python的解释器

需要在solution_environment右键手动添加设置路径

解析设置 http://blog.csdn.net/ldld1717/article/details/52398832

撰写设置 http://jingyan.baidu.com/article/fec4bce271381ff2618d8b3b.html

Visual Studio Python编写官方帮助

https://docs.microsoft.com/en-us/visualstudio/python/code-editing

 

3.其它IDE

PyCharm 最好用的python编写IDE

 

4.Python打包发布插件PyInstaller

4.1.支持Python3.6的PyInstaller安装流程:

4.1.1 cmd输入  pip install pyinstaller(注意要在FQ的状态下 不然网络不稳定)

4.1.2 下载Github最新版本PyInstaller覆盖官网版本 https://github.com/pyinstaller/pyinstaller

cmd进入解压包目录 cd C:\download\pyinstaller(此处是解压包的目录) 

运行 python setup.py install

4.1.3 cmd命令打包python工程 pyinstaller -F C:\projects\test\test.py

 

其它资料:

官方下载http://www.pyinstaller.org/downloads.html

安装教程http://www.jianshu.com/p/5a59b6985346

注意官网的PyInstaller对于python3.6支持的不是很好 所以要下载Github的最新版本 https://github.com/pyinstaller/pyinstaller

同样遇到不能打包问题的人的解决办法1. http://bbs.csdn.net/topics/392008309 2. http://tieba.baidu.com/p/5019039548

 

posted @ 2017-06-16 23:13  翎玄  阅读(252)  评论(0编辑  收藏  举报