开发环境如下:

操作系统:      Windows 7 32/64位

开发语言及工具:     Python 2.7.6, Setuptools 9.1, Pip 6.0.3

开发IDE:        Ulipad, wxPython 3.0, comtypes 1.1.1

其他工具:      py2exe, pyodbc等

  

1、install python

  去下载pywin32,并安装。

2、install setuptools

  备注:“好压”都可以解压。

  •   解压后双击运行“easy_install.py”,成功后会在"C:\Python27\"下新建文件夹“Scripts”,里面会有6个easy_install相关的文件,含easy_install.exe。

3、install pip

  •   去http://pip.readthedocs.org/en/latest/installing.html,下载get-pip.py
  •   双击运行“get-pip.py”,成功后会在"C:\Python27\Scripts\"下看到3个pip相关的文件,含pip.exe。
  •   添加环境变量,右键计算机-属性-高级系统设置-环境变量-系统变量-Path-编辑-变量值,在末尾添加pip的路径,如“;C:\Python27\Scripts\”。
  •       重启计算机,成功后运行cmd,即可像在linux里一般使用pip了。

  备注:使用pip install ***,可能会出现如下错误“unicodedecodeerror: ascii codec can't decode”,解决办法为在报错的页面(见报错信息末尾!)添加代码:    

import sys
reload(sys)
sys.setdefaultencoding('gb18030') 

4、install ulipad

  

 

 

 

posted on 2014-12-30 17:47  土豆饼  阅读(494)  评论(0编辑  收藏  举报